First  |  Prev |  Next  |  Last
Pages: 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
array variable subscript generate wrong code (2008) ?
here is the code: DWORD SomeFunction(DWORD Dw_0, DWORD Dw_1, DWORD Dw_2) { return Dw_0 + Dw_1 + Dw_2; } void main() { DWORD Dw = 0; DWORD pDw[3] = {1,2,3}; DWORD Dw_Sum = SomeFunction(pDw[Dw++], pDw[Dw++], pDw[Dw++]); } I expected VC++ 2008 generate code as SomeFunction(3,2,1) or SomeFunction(1,2,3), howeve... 21 Apr 2008 10:52
pointer non-pointer
==== [Non-pointer version] ==== as a rule, for non pointer, as long as I have an object that dont' need to pass to another function / call another function. I can do the following (non-pointer) - Database db; db.open("user", "pass"); ==== [Pointer version] ==== If I need to pass the object to another fun... 17 Apr 2008 20:29
string vs string*
The following line is illegal? std::string line = NULL; // for a value I cannot set to null as it's not an address Then I should write like following? std::string * line = NULL; // a pointer I can set to null pointer ... 28 Apr 2008 04:19
Increasing your traffic and rankings to your website...
Any ideas or tactics that your using to help increase page rankings and traffic to your websites?This SEO course that I have been using has been a miracle worker for my search engine stats...I wanted to share this with anyone who is looking for something that is less an SEO course and more an interactive learning e... 17 Apr 2008 13:19
CreateFile fail when opening a printer connected to VISTA
I have issues with Createfile() in Vista. In my code, I am trying to open aprinter share(\\vista_ip_addr\print_share) with Creatfile() and OPEN_EXISTING as one of the parameter. Eventhough the share exists, CreateFile always fails saying file not found. It is working fine if I use OPEN_ALWAYS instead of OPEN_E... 17 Apr 2008 13:19
Access violation in oleaut32.dll
Hello everyone, Our customer experience an access violation error inside the method GetRecordInfoFromTypeInfo (implemented in oleaut32.dll). It doesn't happen every time, but it happens every couple of days. The environment is Windows Server 2003 SP2 32 bits. The version of the oleaut32.dll is 5.2.3790.4202 Ha... 17 Apr 2008 12:31
About pure virtual function
Here I'd like to quote a segment of code from Thinking In C++ (a book writen by Bruce Eckel) to expain my question. class Pet { public: virtual void speak() const = 0; virtual void eat() const = 0; }; class Dog : public Pet { public: void eat() const {} }; int main() { // Dog g; } If I ... 21 Apr 2008 10:04
A Windows object named "Instance"...
Hello, I have to get and select controls whose the classname is "Edit". They are in a form which is itself a control whose the classname is "Static". These controls are seen by the excellent freeware "Auto It" as follows : Class : Edit Instance : XX ClassNameNN : EditXX As an example : Class : Edit ... 17 Apr 2008 14:07
safe alternative to va_arg
Hello, for my error handling I have a class with static method overloads to print error messages (I will probably make this a bit more general with some pattern later). But for the start it is enough to print messages with different numbers of arguments. I don't want to write endless overloads for different ... 18 Apr 2008 08:36
problem using delphi dll in vc++
hi, I am using a delphi DLL in vc++,static linked with ".h"and "lib". the export functions in DLL are "__stdcall",but the function doesn't work well,it often returns some weird values. when I add codes as follows,it suddenly works well. why?? DWORD returnAdd; __asm { ... 16 Apr 2008 22:48
First  |  Prev |  Next  |  Last
Pages: 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48