|
saving std::string to a file Windows XP Professional Visual Studio 2005 Platform SDK Jan 2006 DirectX 9.0c SDK Aug 2007 I have been using char * for a long time and I have one application where they are deeply embedded. I have read quite a few times now that I it is better to use std:string and today is the first time I have actually had ... 22 Apr 2008 20:23
WinHttpOpen while using using a Proxy Language: VC6 I'm using WinHTTP, direct API, and cannot use anything else, so please don't tell me to use some other API process. I have code to use a proxy however, I dont have a proxy to test with yet, so I'm preparing the code but not clear if it's correct. When using the proxy, I have the following. ... 23 Apr 2008 23:40
dllexport template function: char* parameter problem Hello, last week I got the suggestion to write template functions for my error handling. With the implementation I've got a little problem: As the functions are in a separate dll, I have to instantiate them explicitely in the cpp file. This works fine for parameters of type int or double. The main purpose of... 21 Apr 2008 09:16
2005 -> 2008 Compiler issues (__RPC__in & PROPERTYKEY) Hi there, I've just ported a C++ project from VS 2005 onto vs 2008, completely fresh PC with all the same SDK's installed and configured that I was using with VS 2005. Unfortunately on compilation I am told that "__RPC_in" causes a syntax error, after Googling I found that apparently it is included in the h... 21 Apr 2008 08:28
Ordering a list of edges How can you order a list of connected edges to get a specific order (CCW or CW)? Right now I'm reversing the edge order to get a desired order. For example: If these edges are ordered CW: A-B, B-C, C-D, D-A and I want them CCW, I reverse them like this: A-D, D-C, C-B, B-A My question is: is this algorithm cor... 21 Apr 2008 05:04
How to call class constructor and allocate the memory on executableHeap? * Jeffrey Tan[MSFT]: I am writting a class which acts as the code thunk to "call/jmp" to another function. The definition is listed below: class x86CodeThunk { private: const static BYTE X86_THUNK_OPRAND_LENGTH = sizeof(DWORD); Consider reserving all uppercase for macros. That reduces probl... 20 Apr 2008 22:44
How to call class constructor and allocate the memory on executable Heap? I am writting a class which acts as the code thunk to "call/jmp" to another function. The definition is listed below: class x86CodeThunk { private: const static BYTE X86_THUNK_OPRAND_LENGTH = sizeof(DWORD); BYTE m_Opcode; BYTE m_Oprand[X86_THUNK_OPRAND_LENGTH]; public: x86CodeThunk() { memset(m_O... 20 Apr 2008 22:44
Unicode data types I was trying to convert the sprintf statement to sprintf_s, but though it compiles, it gives me an exception everytime when it reaches the sprintf_s statement and I am not really sure why. My knowledge of unicode and these new functions in VS 2005 are still new to me though I thought this would work since the ... 23 Apr 2008 06:41
cannot link to _CreateProcessWithLogonW@40 I have no CreateProcessWithLogonW defined in my winbase.h file. But it does exists in advapi32.lib file as _CreateProcessWithLogonW(a)40. To aliviate this mishap, I've just added following: __declspec(dllimport) BOOL __stdcall CreateProcessWithLogonW( LPCWSTR lpUsername, LPCWSTR lpDomain, L... 21 Apr 2008 06:39
Intellisense with external functions Is there any way to get the Visual C++ 6.0 Intellisense to display arguments for library functions? I have a header file with declarations for my dll library, and the lib is in my project, but when I type a function name in my code the IDE won't show me the argument list. Thanks ... 20 Apr 2008 13:11 |