|
I dont like your ironic comments, on the other hand i'm here to get help i am not asking for the global warming solution routine in c!
If you know nothing about c language please it is better to leave the experts to reply to my quote, if again you know (which i doubt), press Ctrl+T and type another website to fool around with.
P.S. Dont forget using namespace std in the attached source above
|
|
|
|
|
Member 2384838 wrote: I dont like your ironic comments...
Richard was being sarcastic, not ironic.
Member 2384838 wrote: If you know nothing about c language please it is better to leave the experts to reply to my quote...
I realize you're new here, but Richard is undeniably one of the more knowledgeable C programmers on this board.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Member 2384838 wrote: I dont like your ironic comments, on the other hand i'm here to get help i am not asking for the global warming solution routine in c!
I was trying to make the point that no-one here is going to write your program for you.
Member 2384838 wrote: If you know nothing about c language please it is better to leave the experts to reply to my quote, if again you know (which i doubt), press Ctrl+T and type another website to fool around with.
I've written one or two C programs in my time so I do know a bit.
Member 2384838 wrote: P.S. Dont forget using namespace std in the attached source above
In a C program?
|
|
|
|
|
I didn't bother reading the entire thread first and just now posted nearly identical code. I removed it so I would not be suspected of plagiarism.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
|
Hi all ...
I m having several solutions containing several VC++ projects depending on each other in .net 2003 IDE.
I have to compile those solutions from command line (for continous intregation and automating the process )or any other way which could be automated and is free.
How can i do that.??
I tried Using Nmake (for a simple solution for testing only )but the problem is that it is giving error "fatal error U1073: don't know how to make 'CI_POC.cpp'"
Can someone help me out ...!!!!!!!!!!!!!
Thanx a zillion in advance ..
It's not enough to be the best, when you have capability to be great....
|
|
|
|
|
You can try devenv.com with /Build commandline option
|
|
|
|
|
sorry but i didn't get what you want to say ....?
It's not enough to be the best, when you have capability to be great....
|
|
|
|
|
Pavan_Putra wrote: I have to compile those solutions from command line (for continous intregation and automating the process )or any other way which could be automated and is free.
Check here[^]
I just tried
devenv "E:\Test\test\test.sln" /rebuild debug
and it worked.
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
I m also trying the same through command line but it is giving error that devenv is not recognized as internal or external command.
Also i am using .net 2003 studio.
Thanx.
It's not enough to be the best, when you have capability to be great....
|
|
|
|
|
D'oh.
How about adding the path to devenv.exe to your "Path" environment variable?
|
|
|
|
|
It is recognizing the command after i have dumped devenv.exe in system32 but it is giving error that it is not a valid solution file.
While we do use same sln file for opening/building solution through .Net 2003 IDE.
Thanx a Zillion.
It's not enough to be the best, when you have capability to be great....
|
|
|
|
|
When take a command prompt, the Visual Studio environment is not set.
You can either set it by running the vcvars___.bat which you can find inside C:\Program Files\Microsoft Visual Studio\VC\bin
or you can take the Visual Studio Command Prompt from
Start -> All Programs -> Microsoft Visual Stdio -> Visual Studio Tools .
From the command prompt type devenv /? to see all the command line option that it supports.
You may have to create a batch file to execute each of your solutions in what ever order you want.
|
|
|
|
|
Hi All
How to get the name of running processes?
|
|
|
|
|
If you're using Windows 2000 or above, you could use EnumProcesses[^]
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Hello sir
I have created the dll ..when i test that dll its throwing one exception
The procedure entry point xxxxx could not be located in the dynamic link library yyy.dll
why this type of error coming ..because its compiled everything fine and how to solve this error !!
Thanks
Raju !!!
|
|
|
|
|
I guess you're not exporting the DLL function that you're trying to call.
Do this in the DLL.
extern "C" __declspec(dllexport) void MyExportedFunction()
{
}
|
|
|
|
|
This is my header file declaration ..
<br />
#ifndef _DLLTEST_H_<br />
#define _DLLTEST_H_<br />
<br />
<br />
#include <stdio.h><br />
#include <windows.h><br />
#include <iostream><br />
<br />
extern "C" __declspec(dllexport) int MyFunction();<br />
#endif<br />
but i dont know why that kind of error coming ..??
Thanks
Raju !!!
|
|
|
|
|
|
This is header file My.h
#ifndef _DLLTEST_H_
#define _DLLTEST_H_
#include <stdio.h>
#include <windows.h>
#include <iostream>
extern "C" __declspec(dllexport) int MyFunction();
#endif
this is my Cpp file
#include "stdafx.h"
#include <stdio.h>
#include <iostream>
#include "My.h"
int _tmain(int argc, _TCHAR* argv[])
{
HMODULE hDll = ::LoadLibrary("My.dll");
MyFunction();
return 0;
}
this kind of way i create the exe sir ..
Raju !!!
|
|
|
|
|
This is not going to work: first, your exe defines the MyFunction as exported. In the exe, you should import the function. If you are using LoadLibrary, you will need to call GetProcAddress in order to retrieve the function.
You could also load your dll implicitely by linking to the lib file generared when you compile your dll, it becomes much easier.
I suggest you start reading some articles about creating and using dll's because you seem to mix a bit everything. Here[^] is a couple of articles about dll's, I suggest you read them (in the correct order of course). Otherwise, I am sure there are plenty of articles on the net if you google a bit about it.
|
|
|
|
|
Thank you sir ..i ll come back with good result ..
Raju !!!
|
|
|
|
|
How did you test your DLL? Are you using LoadLibrary() and GetProcAddress()?
|
|
|
|
|
Sorry for the delay ..sirs..
i am using LoadLibrary function
Raju !!!
|
|
|
|
|
Use the Dependency Walker[^] tool to check if the DLL exports what you want to invoke.
Maxwell Chen
|
|
|
|