|
Yes.
It shouldn't be a problem unless you are mixing Managed and Native terminologies.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
_AnsHUMAN_ wrote: It shouldn't be a problem unless you are mixing Managed and Native terminologies.
What is the problem in mixing managed and native terminologies? Especially given the context of this thread, what else other than using a DLL (COM Interoperability) can be a sensible way to consume something written in managed code, if I am on the native code side?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
INTEROPERABILITY, nothing else. My guess was that the OP was developing the dll in the managed environment.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
|
Well yes and no. If the VS 2008 DLL used dynamically linked MFC, you will likely have problems. If the VS 2008 DLL dynamically linked to the CRT, I'm not sure what the behavior is if you allocate memory in one and free it in the other.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
It has nothing to do with the 'DLL' terminology. If I link dynamically to a third party library from a DLL written with VS6 environment, that would depend on the third party library. This does not mean that a DLL written in VS6 will ALWAYS depend on that third party library.
In other words, you are kinda marrying a DLL with what it is linking to. I was pointing out that a DLL is just well, a DLL.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
There are a lot of articles in this website explain the technical of P/Invoke and inter operation between VC and .NET.
|
|
|
|
|
Hi,
I am a c# developer, i got an c++ application source code which i need to incorprate with my current application in c#.I dont know c++ so i am not understanding the source code in c++.
I have turbo c++ in my system. I am very much confused in c++, How can i start developing application in c++, I need to study the source code in c++ which i got and i need to develop that in c# or add the c++ in to my current application.
My aim is to throughly understand the c++ source code which i got.
Can any body help me?
Thankyou
YPKI
|
|
|
|
|
This forum is for asking specific questions on C++/MFC. If you don't know anything about C++, the ideal way to learn C++ would be to buy a C++ book and read it.
Thinking in C++[^] is an excellent book and the link takes you to a page where you can legally download an electronic copy (both part 1 and part 2) of it for free.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
It would be of great help if you can get the architecture of the application, and the sequence diagrams for your study. This would boost your understanding and decrease the time you would invest in understanding C++ API's which you are not going to use.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Assuming such documentation exists, of course
Dybs
|
|
|
|
|
www.cplusplucs.com[^] is helpful for you.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
i want to connect two dialog boxes in a single project..
for eg., first dialog box will be asking userid and password, upon giving the correct credentials the second dialog box has to be opened.
can anyone hlp me out???
thanks,
rakesh.
|
|
|
|
|
|
In your dialog based application create the main dialog for taking the user input for id and password.
Check and validate the password. If they are correct,
if(bIsPasswordCorrect)
{
CMYDlg myDlg;
myDlg.DoModal();
}
set bIsPasswordCorrect to true only if the credentials are correct.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Did you make your dialogs(with CDialog or CreateWindow)?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
See also this article [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hello All ,
I want to write a code which will find(search) (.extension like (*.txt))files in the all system in vc++ .
Please help me
Thank You.
|
|
|
|
|
This[^] may help to you.
Do not trust a computer...
Always check what computer is doing
regards,
Divyang Mithaiwala
Software Engineer
|
|
|
|
|
|
WIN32_FIND_DATA data; FindFirstFile("*.txt", &data); and FindNextFile may help you
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
|
I am facing the following problem frequently when accessing data from Microsoft access
Key violation.
[Microsoft][ODBC Microsoft Access Driver] Could not find installable ISAM.
can any body advice solution
Trioum
|
|
|
|
|
Hi,
I am working on VS 2005 on Vista platform.
I have an mobile data card which exposes an Modem Port and this port appears as an device entry under "Modems" in the Device Manager.
In addition to this, the device has another port which i figured out by scanning through the registry and this port does not appear in the device manager.
This port appears in the list of available ports displayed by HyperTerminal and also in PortMon and I can connect and talk to the device via HyperTerminal.
But in my application when I try to do an CreateFile with that port name, the call fails with GetLastError() returning 2.
TCHAR szPortName[MAX_PATH]=_T("");
_tcscpy(szPortName, _T("\\\\.\\"));
_tcscat(szPortName, _T("COM6:");
HANDLE hDeviceFile = CreateFile(szPortName,
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
0,
NULL);
DWORD dwReturn = GetLastError();
Is there something wrong in the CreateFile() function call above.
Or is it that Vista allows only ports that are expose/displayed in the Device Manager for an Device to be used by an application?
|
|
|
|
|
Found the problem.
I was specifying Port Name as _T("COM6:") while the correct was is _T("COM6") i.e, without the colon at the end.
|
|
|
|