|
Hi,
I see no reason why your code should fail, under normal circumstances.
Infact, I tried your code (dll+exe side), and it compiles and runs perfectly well.
Something other than your test code could be causing the problem. It would help if you specified what else you are doing.
Bikram Singh
|
|
|
|
|
Hi Bikram,
Is it possible for you, can you kindly send me Your Test Application to me, so that i can find out the problem in my code. Even one of my other friend tried the same, even he got the same result.
Kind regards,
Subbi.
|
|
|
|
|
sure. i'll email it to you.
Bikram Singh
|
|
|
|
|
Bikram,
Really Thank You so much for your code. I found the Problem with my code.
Actually I've created a Win32 DLL thru' the Application wizard first and then I set the property to use MFC in Shared Dialog. So, i've no CWinApp Object Created, rather i've only the DLLMain function in the Application, which leads to the failure of the Application call by which i get a NULL pointer, of the AfxGetApp call in the RunModalLoop function.
Again I thank you for your help.
Kind Regards,
Subbi.
|
|
|
|
|
Hi,
is there any way to get the oject pointer using WriteProcessMemory,ReadProcessMemory and windows hooking.
Regards
Abhay
|
|
|
|
|
Hi,
is there any way to get the oject pointer using WriteProcessMemory,ReadProcessMemory and windows hooking.
Regards
Abhay
|
|
|
|
|
it is possible.
what does 'object' mean? C++ object? Win32 object?
Bikram Singh
|
|
|
|
|
i need to develop a process monitor which will show all the open ports in the machine. how do i proceed?
|
|
|
|
|
serch for Port Scanner On CP ,you will many good Code for that.
An idea Behind it is.
create a socket application and connect each and every port
on local system.like this.
<br />
CSocket a;<br />
a.Create();<br />
CUintArray b;<br />
for(int i=0;i<=1024;i++)<br />
{<br />
if(a.Connect("127.0.0.1",i)==TRUE)<br />
{<br />
b.Add(i);<br />
a.close();<br />
}<br />
a.close();<br />
::Sleep(1000);
}
and CUIntArray b contain all open port on your system
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
hello,
i need to identify a machine (pc) in a unique way, is there a solution to get the id of motherboard or processor, the network card isn't always present.
thank you
|
|
|
|
|
I have never tried it, but most Intel and AMD CPU's have a instruction called CPUID.
Search google for cpuid and "source code"
Bikram Singh
|
|
|
|
|
I want to build an HTMLEditor Control in VC++ that would be an ActiveX. Any help or piece of code that may enable me to guide to start is strongly appreciated.
|
|
|
|
|
How to call a function in a frame from a view. Thank u for the answer.
Work hard and a bit of luck is the key to success.
|
|
|
|
|
goodmast3r wrote:
How to call a function in a frame from a view
GetParentFrame()->MyFunction();
should do it.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
I have appended some elements to my root element using appendchild. Even then getElementsByTagName() returns nothing. What should be done. Here's the code.
pXMLRoot = pXMLDocument->createElement("CDLAYOUT");
pXMLDocument->appendChild(pXMLRoot);
pFamilyNode = pXMLDocument->createElement("FAMILY");
pXMLRoot->appendChild(pFamilyNode);
pFamilyNode->Puttext("tiger");
pOSNode = pXMLDocument->createElement("OS");
pXMLRoot->appendChild(pOSNode);
pOSNode->Puttext("Win2k");
AfxMessageBox(pXMLDocument->xml);
set = pXMLDocument->getElementsByTagName("*");
Thanks in advance
Dipeka.A.J
|
|
|
|
|
A lot would depend on the hardware you are planning to use.
You might want to search for VOIP (Voice over IP).
Michael
CP Blog [^]
|
|
|
|
|
You can't connect a IP connection phone call to a PST standard phone without hardware in the middle to do the swapping.
You would need to find a phone provider who could do that for you. You won't be able to do it with a standard ADSL modem. You can do IP to IP fairly easy but not IP to PST.
Michael
CP Blog [^]
|
|
|
|
|
Does anyone, knows how to make a flexgrid control the same size as the cells size. Got it? Thank you for the answer.
|
|
|
|
|
Hello,
I am trying to manage IP, Masque, DNS, and DHCP in C++ and I can't find a correct method to manage it.
I have developed a programme using Windows Registers but the programme doesn't work on all Windows XP computers sniff.
Can anyone tell me the best method to manage TCP/IP parameters for Win 98 to XP computers???
Thanks for your help.
|
|
|
|
|
|
Hi,
I tried using the code below but the value turns to 'NULL' on the next loop...Pls help.
Rgrds.
CString MyString = "ABCDEF";
char * szMyString = (char *) (LPCTSTR) MyString;
|
|
|
|
|
maybe you should write what you want to do...
the code looks, like you are going to make
a mistake...
|
|
|
|
|
Two options are
// Recognising that LPCTSTR is const TCHAR *
CString MyString("ABCDEF");
LPCTSTR szMyString = MyString;
or
CString MyString( "ABCDEF" );
LPTSTR szMyString = new TCHAR[MyString.GetLength()+1];
_tcscpy(szMyString, MyString);
'G'
|
|
|
|
|
GetBuffer(...) returns pointer to the raw string.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
I want to run only one instance of my application at a time at my User's PC .
if he try to run another instance by clicking on EXE ,, he will recvie an error message.
i have a little idea , i thin it is by some static function and static data member to have count of instances. ... and there may b a rule of Constructor ..
but i cant do it ..where to write and how
any idea or Code sample
thanx
|
|
|
|