|
Hi
Im testing my project in different OS.
My project needs to register a COM dll.
In Windows XP, and ME works great.
But in Win2K and 2003 server I can't register the dll.
If I do:
regsvr32 library.dll
I get "LoadLibrary("library.dll") Failed - Access Denied"
I'm logged as an Administrator, and tried registering an OCX and registered ok.
Any suggestion?
Thanks
Sebastian
|
|
|
|
|
Maybe a DLL that your DLL requires to load is not available on the systems experiencing failure.
Run Depends.Exe (Dependency Walker) to see which other DLL yours requires.
No shirt, no shoes, no brains, no service.
|
|
|
|
|
I needed to install ATL71.dll, now is all working
Thanks
|
|
|
|
|
I am looking for Visual C++ compiler if anyone has that or visual studio 6 please email me at Paradox998@aol.com.
Thank you
-- modified at 10:11 Friday 9th December, 2005
Thank you for your quick responses, was looking for a free vc6 if i cant use the msdn free download to compile it is missing nmake file i need.
|
|
|
|
|
You can find it on EBay[^]. I'm pretty sure it's also included with an MSDN Pro subscription.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
oh, seems that we are visiting the same sites
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
|
|
|
|
|
|
|
Hi all,
I have a crash dump which point to the following function :
string.erase()
does someone has any clue what could be the reason ?
I thought it a safe function , which is very straight forward to use
Thanks
|
|
|
|
|
hey guy, do you think you can help me if i give you such a line of code, just looking normal ?
give us the error/exception message and the context this line of code is called (provide a piece of the code around it - but not the entiere file !!!)
moreover, tell which string class you are using (CString, std::string, or any else...)
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
|
|
|
|
|
|
Hello Sir,
in my application i have to interact with C from my VC++ GUI,i have to set intials to variables in C from VC++, and control the C program from GUI like compiling, sending intial values, read data, and output should again send to VC++.
How can link these two.
Thanking you.
sheshidar patnam
|
|
|
|
|
I dont understand what u what to do might be ur talking somthing about
IPC (inter process communication )
But if u mean to get some data from other exe file in vc++
then u can create a file and then store the data and retrive
the data from the file
something like Dll can also help u but not sure as i could not get ur question .
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
I am sorry that u couldn't understnad my question,
my question is i have some programs written C, and i have one GUI developd in VC, now i have to control C programs with GUI, like start c execution, assigning intial values to it.
|
|
|
|
|
How would you assign initial values to your C executable without the GUI. For example, does your C executable use command line parameters or an input file? Those two things would be very straight forward to do from your GUI app.
|
|
|
|
|
Normally, what you have to do is to modify the .h-files for the C-sources
Before the first function prototype add this:
<br />
#ifdef __cplusplus<br />
extern "C" {<br />
#endif<br />
After the last function prototype, add this:
<br />
#ifdef __cplusplus<br />
}<br />
#endif<br />
Now you can call the C-functions from your C++-source.
Kakan
|
|
|
|
|
Hi Kakan,
thx for ur message,
i did as you said, and now i have another question,
i want to retrieve a string from C code into editbox,
i added the code to header files as you said, now how i have to initialise string to editbox,
for instance mamber variable of edit box is m_strEdit1,
and a function in c code returns the string "Hello", so how can i bring this string into editbox in vc.
thanking you.
|
|
|
|
|
Hello.
It's really very easy.
The C program returns a char* or a const char*.
Simply put it in m_strEdit1, and thats it!
But, there is an issue with MFC (and/or Windows): The editbox won't change it's value!
You have to call ::UpdateData(TRUE or FALSE), I never remember which, check the documentation. Then, you will see the newly assigned value in your editbox.
So do this (I assume the C string is in (char *) C_value):
m_strEdit1 = C_value;
UpdateData(TRUE or FALSE);
And that's it.
Good luck.
Kakan
|
|
|
|
|
Thx Kakan,
i have some questions,
ok i will explain what i need,
i developed one GUI in VC++, and there are microcontroller hardware progams written in Keil(is like C)for a microcontroller. now i have to select data from GUI and assign them to keil programs and retrieve data from keil and send it back to GUI, and again i have to send some other information to keil from GUI.
and for this do i need to write path to communiucate with other programs.
how to call the keil(C) programs in GUI and how to send and receive data from there.
|
|
|
|
|
Hello.
The question about how to execute other programs is very frequent at CP.
One way is to use ShellExecute, but there is others as well.
When it comes to communication, frankly, I don't know.
How does the Keil-program interface with the outer world?
stdin/stdout or another way?
If it uses stdin/stdout, you *might* be able to use the old C-function popen(). Check it out.
But I'm not sure if popen still exist.
Kakan.
|
|
|
|
|
Hi kakan,
thx for ur message,
and keil is similar to C.
And one old report i found that they used printf and scanf to send and receive from VC++.
|
|
|
|
|
Hello shesidar. It seems as if we live in different time zones...
The keil-program is the key here. I can think of two different scenarios, with two different solutions.
Scenario 1:
You start the Keil-program for every message to it. You give it the input via the command line. The Keil-program returns it's output to sidout and terminates itself.
For example:
<br />
C:\>Keil_program Status<br />
Status=2<br />
C:\><br />
Scenario 2:
You start the Keil-program. It reads it's input from stdin and responds to stdout. Then it awaits your next command.
For example:
<br />
C:\>Keil_program<br />
Status<br />
Status=2<br />
Exit<br />
Exiting...<br />
C:\><br />
Do you see the difference?
For scenario1, you can create a command line and redirect the output to a (temporary) text file. (Then you read the text file from your VC-program, and display it's result).
Example:
<br />
Keil_program Status >C:\tmp\output.txt<br />
Then read the file C:\tmp\output.txt and display it's content.
For scenario 2:
Have a look at the documentation of the _popen-function.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt__popen.2c_._wpopen.asp[^]
Kakan
|
|
|
|
|
Hi Kakan,
Thx for ur message, but i am confused with how to call keil from VC, and how to send data from Keil to vc, i didnot understand your previous message.
Please donot mind, should i add any libraries in VC to communicate with kiel?
Thanking you,
sheshidar patnam
|
|
|
|
|
Hello.
I have taken for granted that the Keil program runs as a separate program in a DOS-box/command-prompt and you want to interact with it as such.
If you want to include the Keil-program INTO your Windows-program, then I don't know how to do it. You will have to read the manual(s) for Kiel, it should say something about how to do it.
Now, I will go on leave and I won't be back until the 2:nd of January 2006.
Maybe I will check out CP from time to time. But not on a regular basis, that's for sure.
Merry Christmas and Happy New Year to you.
Good luck.
Kakan
|
|
|
|
|
Thx , kakan,
and i wish you for merry christmass and happy new year, enjoy the events.. have a nice time.
bye.
sheshidar patnam
|
|
|
|