|
I have a requirement to find that which bluetooth stack is
present(currently active) on the system(Windows XP) ? can anyone help me??
|
|
|
|
|
My code was
<br />
USER * pUser = new USER;<br />
ZeroMemory(pUser, sizeof(USER));
pUser->strName = name;<br />
Can please explain me why ZeroMemory(pUser,sizeof(USER)); was causing the error.
Thank you.
KIRAN PINJARLA
|
|
|
|
|
when u use the ZeroMemory() funtion, the m_pchData member in the CString becomes NULL.
but CString was unaware of this change. when trying to copy the new data( in the statement pUser->strName = name;) it causes error.
So dont use ZeroMemory for class/structure that have another class as member.
nave
|
|
|
|
|
Thank You so much Naveen and Toxcct.
Have a great time.
KIRAN PINJARLA
|
|
|
|
|
Hi everyone!
I have a problem of getting worldclock time . Who can help me how to get the world time. Thanks in advance!
|
|
|
|
|
raycadarena wrote: Who can help me
some times i can...
raycadarena wrote: getting worldclock time
what do u mean.. Greenwich mean time?
raycadarena wrote: how to get the world time
did u tried GetSystemTime()?
nave
|
|
|
|
|
can someone please tell me how can i do encryption of image using MFC??
i have created a load button in my program to load an image... after i've load the picture(in *bmp format), how do i encrypt it then save it back into the file? i want to do a simple a XOR logic encryption... i'm using Visual C++ 6.0
Thanks,
Regards...
|
|
|
|
|
You can do it with the bitmap bits.
This may help you[^] but it's dealing with files. you can do the encryption with the bitmap bits you are writing. and do the reverse on loading the file. after reversing, display it.
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
My Blog | Understanding State Pattern
|
|
|
|
|
hey all,
In my code, when I try building my application,
I get this error:
ProgtestDlg.obj:error LNK2005: "unsigned char * Rec_Buffer" (?Rec_Buffer@@3PAEA) already defined in Progtest.obj
But I have define in only one place and thats in Definitons.h nad have included this header file in ProgtesDlg.h
I havent declared this function anywhere. what s wrong? can anyone help please?
Thanks in advance.
|
|
|
|
|
Put "stastic" before the definition of the variable.
or
move the definition to the cpp file( say in definitions.cpp ) and declare it in the header file.
in cpp file
unsigned char * Rec_Buffer;
in header file
extern unsigned char * Rec_Buffer;
nave
|
|
|
|
|
Add #pragma once as the first statement in your Definitons.h
cheers...Milton KB
|
|
|
|
|
Milton KB wrote: Add #pragma once
no use
nave
|
|
|
|
|
i am trying to write a script. i need to copy the contents of my clipboard into a text file. then i need to save the text file as a htm file extention with a different name then i need to close both of the files. basically what i am doing is saving web page code in a filemaker pro data base. and i want to take the contents of a field that contains my code. and save itr as a htm file. is there any scripting language that will allow me to do this.
thanks in advance for any responses
-- modified at 22:59 Monday 31st July, 2006
|
|
|
|
|
|
Hey all,
I use VC++6.0 version and have created a single document application.
When I try to close my application by using the exit control button im dialog page, I get this error message:
" Unhandled Exception in Prog.exe (KERNEL32.DLL):0xC0000005:Access Vioaltion.
I dont know how to fix this error. Can anyone help me with this. Waht does this mean and how do fix it?
Thanks in advance.
|
|
|
|
|
An access violation means your program is touching some memory that it should not. Perhaps you are attempting to use an object that has been deleted etc?
Best thing to do is to set the debugger to break when this type of exception is raised. In the debug menu choose exceptions (I think thats what its called, I cant remeber the exact name of the commands in VC6) and find the access violation and set it to break when exception raised / thrown. Then rerun your program and see where this exception is coming from.
Objects in mirror are closer than they appear
|
|
|
|
|
Other then MessageBox() is there any other function to display in vc++.
Is there any function which will print the data coming form server in ther list box.
ANY LINK.
ANY IDEA.
|
|
|
|
|
OutputDebugString(..) may be use full.
nave
|
|
|
|
|
But it works only when the coding is in Debug Version
never say die
|
|
|
|
|
|
I m using it right from the day i started coding .Right i m using it
-- modified at 10:50 Tuesday 1st August, 2006
never say die
|
|
|
|
|
Then whu did u ask like this
"But it works only when the coding is in Debug Version"...?
nave
|
|
|
|
|
Hello,
I'm looking for a library, that is able convert a regular expression to a c/c++ source code, which will parse an input string.
Anyone heard of such a library?
Regards,
Alex
Don't try it, just do it!
|
|
|
|
|
You might try investigating one of the parser generators out there to see if they can be configured to do the job. There is VisualParse (expensive commercial product) and some free ones at ‘sourceforge.net’. If it is an option, I would be tempted to use Regex++ to do the parsing, but I think you know about that already.
Note: I have added this to my to-do list, as an expansion of my personal RE parser.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
hi,
i met a dreadful problem with my program
i decleared and defined an external variables in one .c file like this:
//File 1.c
int a=0;
...
main()
{}
...
and then i wanna use a as an external variable in one .cpp file where i defined a class ABC like this:
//file 2.cpp
extern int a;
....
Class ABC::MemberFunction()
{
int tmp=a;
}
the program passed compiling but not linking
the error message says: error LNK2001: unresolved external symbol "int a" (?a@@3HA)..
what happened??
i also tried to declare "a" as:
extern "C" int a;
but still doesn't work.
what's more, my boss started pushing me on the program
|
|
|
|