hi..
ive been stuck on the same problem for 2 months now :/
and its something very very simple i believe
but ive posted on help boards during this time
but no joy
im wondering could any...
Type: Posts; User: GUI_XP
hi..
ive been stuck on the same problem for 2 months now :/
and its something very very simple i believe
but ive posted on help boards during this time
but no joy
im wondering could any...
the datatypes i want to store in the array
have to be unicode chars
so use whatever datatypes u want..
i was told TCHAR but
couldnt get it to work
char AdapterList[10][1024]
How do i write chars into this array..
so later i can
easily reference them via
just there array script later?
eg.below
/*
Hi..
this little app gets the network cards installed on a pc using WinpCap http://winpcap.polito.it/install/bin/WinPcap_3_0_a4.exe about 300k..
WinpCap is open source packet capture...
#include <stdio.h>
#include <conio.h>
#include <wchar.h>
#include "packet32.h"
#include "ntddndis.h"
#define UNICODE // Helps Im told
// Prototypes
thanks ill give em a go
ok i will do that thank you..
but is the logic in my loop flawed do u know?
the end result of myloop
is i want to be able to say characterArray[3]
and it points the position of the starting...
Sorry OS is win2k..
so chars are stored in unicode..
can u tell me which struct or type
i should be storing unicode chars in ?
i have this problem for over a week now..
How do i then search the AdapterName array..
get to get each individual set of characters that make a string.
i am using this method
and the application...
win32 vc 6
i was told vc 6 didnt comply to ansi standard for
wchar..
ive upgraded to vc 7
and gonna give that a try now
This one is driving me crazy
is there a C++ equivalent for the WCHAR datatype?
Data Types:
WCHAR AdapterName[8192];
// Question 1: WCHAR is only a C datatype yes?
ULONG AdapterLength = 4096;
function prototype is:
BOOLEAN PacketGetAdapterNames(PTSTR pStr,PULONG ...
i did read the error..
i didnt know how to fix it
thanks
Hi..
im porting a tiny app from c to c++
and encoutering a few probs
char *buf;
buf = lpPacket->Buffer;
compiler didnt have problem with this in c
does in c++