MANISH RASTOGI
Posts
-
file transfer -
How to make member functions of an application accessible by a DLL?Export function from exe and import in dll. Below example is taken from http://www.codeguru.com/cpp/w-p/dll/article.php/c3649 In the EXE: // Do exactly as you would export a DLL... extern "C" { EXPORT void ExeFn(char * lpszMessage) { MessageBox(NULL,lpszMessage,"From Exe",MB_OK); } } In the DLL: ... // Get the handle of the EXE that loaded us. FnPtrT FnPtr = (FnPtrT)::GetProcAddress(GetModuleHandle(NULL), "ExeFn"); if(FnPtr) (*FnPtr)("Message From The DLL"); else MessageBox(NULL,"It Did Not work :(","From DLL",MB_OK); ...
-
[SOLVED] COM Dll Not Getting Registered In Windows Server 2008 [modified]Hi Experts, I am facing a strange problem. I developed a simple COM dll in VS2008 using ATL on vista 32 bit platerform. When I try to register it on windows server 2008, I am getting below error. The module "D:\TestATL.dll" failed to load. Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail. I searched this problem on google but could not find any solution. Any idea about this. Solution: http://www.codeguru.com/forum/showthread.php?t=454296 Thanks Manish
modified on Saturday, November 27, 2010 1:08 AM
-
Tab Orderusing SetWindowPos API.
-
CListCtrlChange the position of listctrl using MoveWindow Or SetWindowPos.
-
CListCtrlMake it child of the control.
-
How to receive HTTP request? [modified]There is no specific socket for http.
-
How to receive HTTP request? [modified]As I get you want to create server. Simple open a socket and start listening on a specified port. for test open internet explorer. type http://127.0.0.1:5000 5000 is port number on which server is listening request. It is changable but should be same on both server and client. On server read socket.
-
How to receive HTTP request? [modified]Are you want to create your own http server?
-
Need some help immediately -
Unicode to Hex conversionConvert unicode text into byte stream, then convert that byte stream into hex.
-
auto closing messageboxSee This. MessageBoxTimeout API[^]
-
How to get ordinal value of function programitically ?Dear All, I have created a dll in vc and exported some function. How can get ordinal value from function name in vc? I searched on google but could not find the result which I was looking for. Thanks Manish
-
Set Monitor Contrast.............?See below link http://www.codeproject.com/KB/miscctrl/gamma_manager.aspx
-
How to get ip from computer name?'Obtain ip address automatically' set - on remote computer, got different ip. 'Prefered DSN Server' settings had wrong value. After changing it got correct ip.
-
How to get ip from computer name?Hi All, I am using gethostbyname function to get ip from name. It works fine if ip is defined. But if 'Obtain ip address automatically' settings is on, this function gives some different ip. Any help please. Thanks
-
Get dependent Dll listHi, I am writing an utility dll like dependency walker. I have no idea how to get dependent dll. Any idea about this. Thanks
-
How can save COLORREF value in access database ?Use Number Datatype.
-
Reg : Key Down message not receiving in dialog procedureBOOL CALLBACK DialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { BOOL bResult = FALSE; switch(uMsg) { case WM_INITDIALOG: // implemention code; bResult = TRUE; break; case WM_KEYDOWN: // implemention code; bResult = TRUE; break; } return(bResult); } DialogBox(g_hInstance, MAKEINTRESOURCE(IDD_DIALOG1), NULL, DialogProc);
-
Reg : Key Down message not receiving in dialog procedureHi, I created an dialog application in SDK. Dialog does not contain any control. I tried to capture WM_KEYDOWN message, but not receiving this messaage. In MFC I can track this message in PreTranslateMessage but I do not know how to track in SDK. Any Idea please. Thanks