Eh, I am trying to figure this out and nothing seems to work. I want to convert one simple string to unicode.
cstring doesn't work at all
#include <string>
using namespace std;
....
Type: Posts; User: todd14
Eh, I am trying to figure this out and nothing seems to work. I want to convert one simple string to unicode.
cstring doesn't work at all
#include <string>
using namespace std;
....
HDC bitmapDC;
HBITMAP bitmapHandle;
COLORREF bmpSample;
bitmapHandle=(HBITMAP)LoadImage(0,"e:\\mytestsample.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
bitmapDC = GetDC((HWND)bitmapHandle);...
How do I make a def file in MSVC++? I tried adding /def:myfile.def in the settings window but all I get is this:
Command line warning D4002 : ignoring unknown option '/def:myfile.def'
I have been following a tutorial but the problem is the tutorial is for c++.net
They say I have to edit the ddraw.def file and add
LIBRARY "ddraw"
EXPORTS
DirectDrawCreateEx =...
void a(char *string, HWND rsHwnd)
{
sMessage = (DWORD)GetProcAddress(LoadLibrary("User32.dll"), "SendMessageA");
LPARAM lstring = LPARAM(string);
__asm {
mov eax, rsHwnd
xor ebx,...
error LNK2001: unresolved external symbol __imp__InternetCloseHandle@4
error LNK2001: unresolved external symbol __imp__InternetReadFile@16
error LNK2001: unresolved external symbol...
I'm trying to figure this out but anything I do gives me errors
hINet = InternetOpen("InetURL/1.0", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0 );
hConnection = InternetConnect( hINet,...
Is there an easy way to convert an integer to a character?
strcat(myString, char(myInteger));
bruteRSsid\bruteRSsid.cpp(33) : error C2664: 'strcat' : cannot convert parameter 1 from 'class...
Compiling - main.c for i386
errors in directory d:\winddk\3790~1.183\src\ddriver\devicedriver
d:\winddk\3790.1830\src\ddriver\devicedriver\main.c(14) : error C2143: syntax er
ror : missing ';'...
I am compiling with WINDDK Windows Server 2003 Build Environment and I get a lot of errors. I am so lost. Can anybody please tell me what I am doing wrong?
#include <ntddk.h>
void...