Hi, I've got a problem with a class, can you tell me what the problem is?
[a.php]
<?php
$g_a = "hello";
?>
[b.php]
require_once("a.php");
echo $g_a;
class Test
{
public static function GetA()
{
if ($g_a == null || $g_a == "")
throw new Exception("$g_a is an invalid value!")...
Hi, im trying to work with the shell and paths everywhere. Everything works fine for navigating through PIDLs, but when i access "My Documents" from the Desktop, it gives me the display name of:
"D:\My Documents" (the correct location, but i want it to appear as just "My Documents")
This is...
Hi,
I need some example code / suggestions which will easily allow me to add a new line to a rich edit control and colour it accordingly.
Skute
"There are 10 types of people in this World, those that understand binary, and those that don't!"
Hi, how can i draw an icon next to the edit control in a combo box? Ive successfully managed to draw a list icons in the listbox, but now i want to draw the icon that the user selected next to the text in the edit box.
Ive obtained the edit box by attaching to it in the OnCtlColor() message of...
Hi, how do i use CTabCtrl? Ive added the control to my dialog and added 4 tabs to it. Now how do i actually add items to the tab control? Or is that not how it works? As far as i can make out, you need to load up 4 different dialogs with no frames, then show or hide them depending on what tab is...
Hi,
Is it possible to use the MsoCommandBar in your applications? Im working on a simple API application and would really like the funky drag drop rebars (or coolbar as it used to be called) from MS office.
Cheers
Skute
"There are 10 types of people in this World, those that understand...
Hi,
anyone know how i can programatically change the windows sound volume using API?
Cheers
Skute
"There are 10 types of people in this World, those that understand binary, and those that don't!"
Hi,
i can add several videos to a timeline and play them, but im trying to size the movies into a specific area on screen keeping their aspect ratio. For this to happen successfully, i need to know the size (width and height) of the clip playing in the timeline (or just the timeline if all...
Hi,
Im having trouble with an application i wrote where by the resizing of the window is causing alot of flickering. Also, if i invalidate the whole window it causes a flicker. Is there any way of getting around these problems? Ive already used single buffering in my paint code to stop...
Hi,
Does anyone know howto access the blocked sender list within outlook 2003 via code?
Thanks
Skute
"There are 10 types of people in this World, those that understand binary, and those that don't!"
Hi all,
Just wondering if anyone can recommend a couple of decent training courses in the UK? Im looking for either Managed C++ .NET, cryptography, network programming, artificial intelligence or directx(3d).
Cheers
Skute
"There are 10 types of people in this World, those that...
Hi,
im after a way of sending an email in HTML format (including embedded images). Currently ive got it working so that i can send an email, but it sends the .html file as an attachment! Which obviously isnt very good for my needs.
If anyone has any help / advice on getting a HTML email...
Hi,
i know this question has been asked many times before but every time i try to google for some examples i get no-where. Does anyone have any good links for information regarding creating your own toolbar in IE?
I would prefer API examples but will look at all. Cheers
Skute
"There are...
Hi, whats the fastest way to keep adding data onto the end of an array? I know you cant resize an array but this is the method ive come up with:
string[] strTest1 = new string[1];
strTest1[0] = "Hello!";
string[] strTest2 = new string[2];
strTest2[0] = strTest1[0];
strTest2[1]...
Hi,
how can i create a class in a DLL and then use it in an EXE?
Im just using Win32 - no managed, no MFC.
Cheers
Skute
"There are 10 types of people in this World, those that understand binary, and those that don't!"
Hi,
is it possible to get quotes inside a macro??
basically i want to change this:
#ifdef PEGASUS_EXPORTS
#define PEGASUS_API __declspec(dllexport)
#else
#define PEGASUS_API __declspec(dllimport)
#endif
to this:
#ifdef PEGASUS_EXPORTS
#define PEGASUS_API extern "C"...
Hi, im trying to load an icon into a NotifyIcon structure, however it wont work when i try to load from a resource:
m_pNotifyIcon->Icon = new System::Drawing::Icon(GetType(), "App.ico");
The only way i can get it to work is if i load it directly from disk (by doing...
Hi,
are there any online game development groups / communities you know of? Id like to join / start a group for fun.
Skute
"There are 10 types of people in this World, those that understand binary, and those that don't!"
Hi,
im trying to overload the "+" operator to join 3 strings together, but im having difficulty. Im only doing this for a bit of experimentation.
CStr String1 = "Part1";
CStr String2 = "Part2\n";
CStr String3;
String3 = String1 + " " + String2;
//...
Hi,
Can someone give me a good example of throwing your own exception classes and catching a reference of them, ie:
try
{
functionx();
}
catch (MyException& ex)
{
printf(ex.GetMessage());
}
functionx()
{
// This isnt right!
MyException* pEx = new MyException();
pEx->SetMessage("Throwing...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.