|
Sakthiu wrote: I need to do that Registering COM dll by coding ...
Now can i do that ?
Yes.
-------------------------------
If you are looking to register a com dll from your application - Simplest way could be to run RegSvr32.exe in silent mode (parameter -s) through ShellExecute()
|
|
|
|
|
Sakthiu wrote: Now can i do that ?
Yes, most COM registration takes place using some kind of coding...
As for HOW, well, you need to add your object's/interface's information into the Registry. I would also suggest that you also register your Proxy/Stub (of an out-of-proc COM Server), and also register your Type Library (if you are IDispatch-based, see see LoadTypeLibEx(...) ). This greatly simplifies installation issues.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Sakthiu wrote: I need to do that Registering COM dll by coding ...
LoadLibaray and GetProcAddress for DllRegisterServer
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Or execute <server name>.exe /RegServer if it's an EXE-server.
|
|
|
|
|
Shell execute regsvr32.exe Dll path Not sure it's the best way but it will work.
:Gong: 歡迎光臨 吐 西批 :Gong:
|
|
|
|
|
Hi
I have a program asociated with a file extension, when I open the file via Outlook, it creates a temp file in:
Documents and Settings/sebastian/Local Settings/Temporary Internet Files/OLK37/file.mio
My app receives the path, but CreateFile fails with error 123: File not exist
The file exist, but that is a system/hidden folder.
Why is failing to open the file??
This is my call to create file:
<br />
<br />
HANDLE hFile = CreateFile(param, <br />
GENERIC_READ | GENERIC_WRITE, <br />
0,<br />
NULL,<br />
OPEN_EXISTING,<br />
FILE_ATTRIBUTE_NORMAL,<br />
NULL);<br />
<br />
Thanks in advance
|
|
|
|
|
Error 123 is not a File Not Found error - there is something wrong with the path you are passing to CreateFile(...) .
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Kharfax wrote: Documents and Settings/sebastian/Local Settings/Temporary Internet Files/OLK37/file.mio
Try and open a cmd console to check if the path is really correct. Sometimes folders have another name as the one displayed.
Can you open the file with Notepad at the given location ?
|
|
|
|
|
Kharfax wrote: ...but CreateFile fails with error 123: File not exist
Error 123 is ERROR_INVALID_NAME .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
OK, I did this, I called shellexecute with notepad, and the file openned.
ShellExecute(NULL, "open", "notepad.exe", param, NULL,SW_SHOW);
So, I dont know
Help please
|
|
|
|
|
We need to see what the path looks like in param .
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Solved
Damn!, the path had " at the beginning and in the end, I trimed the " and now is working fine
Thanks a lot for the help
|
|
|
|
|
I have developed a similar control with
1. No bitmap require to carry with the project (low application load)
2. Let the characters of the control to be decided by the system while putting static control on dialog.
User need not to specify no of character per control, it will be calculated.
3. Just change the scale to change the size (accordingly no of character will be increased/decrased)
4. = operator to assign the text (easy to use)
5. support of new line (\n) character. eg. "abcd\nefg" it will
show
abcd
efg
(in two line control)
6 Non-ASC-II non-printable character view (eg. 0x1 has got smiley face image)
I want to upload it free, How Do I ?
Regards
Vishwanath Borkar
Software Developer (VC++)
Navi Mumbai
email: vishwanath38@hotmail.com
sdf
|
|
|
|
|
Make a article for that and publish it here on CP[^] .
|
|
|
|
|
Is there a VC++ function to send messages between PC's in LAN? What is the command to send messages between PC's in LAN?
THere are 5 PC's in the LAN. Only PC1 has direct connection to internet. The rest of the PC's connect through PC1 with the help of a proxy server. All these PC's belong to the same WORKGROUP.
|
|
|
|
|
|
nripun wrote: Is there a VC++ function to send messages between PC's in LAN?
Can you be more specific? You want to make a chat like application? Anyway you'd be needing this^
:Gong: 歡迎光臨 吐 西批 :Gong:
|
|
|
|
|
nripun wrote: The rest of the PC's connect through PC1 with the help of a proxy server. All these PC's belong to the same WORKGROUP.
http://www.codeproject.com/internet/[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
nripun wrote: What is the command to send messages between PC's in LAN?
Some of the methods available:
Sockets
Named pipes
RPC
DCOM
Mailslots
NetBIOS
|
|
|
|
|
NetMessageBufferSend
Nuclear launch detected
|
|
|
|
|
I need mfc tutorials for beginners. Please help me.
|
|
|
|
|
Here[^] you can type "MFC tutorials".
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
:Gong: 歡迎光臨 吐 西批 :Gong:
|
|
|
|
|
Oh, dear!
Get ready to be flamed.
|
|
|
|