|
Apply the DesignerSerializationVisibility attribute to the Properties you need to "persist" the settings from design time to runtime.
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
During the time i compile my VC6.0 project in VC7.0
I get these error during linking process.
TestMC error LNK2001: unresolved external symbol "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ)TestMC error LNK2001: unresolved external symbol "void __cdecl std::_Xran
What are the needed header files or static libraries?
thanks
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
|
MC++?
--
Breaking the law, breaking the law
Breaking the law, breaking the law
You don't know what it's like
|
|
|
|
|
|
--
Breaking the law, breaking the law
Breaking the law, breaking the law
You don't know what it's like
|
|
|
|
|
That is because oftenly, most of project which was developed in VC6 could not be reused in VC7 or Managed C with some problems of could not get most of the libraries link up properly. I just hope to see if there are anyone who came across with the similar problem of which similar linker error could shed some light of pointing out which static libraries or files that I need to additionally include into my project.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
You need to make sure you're pointing at the correct LIB files. Sometimes you have Visual Studio installed libs and Platform SDK libs. Make sure you're only pointing to one or the other.
|
|
|
|
|
i have made a simple web service which calculate addition of 2 numbers(managed C++ web service), i try to use it in another managed C++ application, the first attempt is successful, i add web reference to project and put url to the directory where myProgram.asmx resides, it works, i try to run the application and runs smoothly.
But i try it again by creating another managed C++ application and just do the same thing...now i can't add web reference....when downloading files in progress.....boom....it can't find any web reference in the url i typed before(same url)....sometimes..if i try many times....then error message appear is IIS has encounter a problem and need to close...
I wonder if i need to install something or change setting to overcome this problem.....
Finally...i wonder whether i can create MC++ web service and consumed it in C# application....if yes, how?...is there any tutorial or resources for this?
Thx for answers....sorry for the wordy question
|
|
|
|
|
This sounds more like a ASP.NET than a MC++ question to me.
Probably you could get an answer there.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
it shouldn't be asp since i'm using C++ , no asp.net at all
|
|
|
|
|
But if you are developing web services with .NET, then it should involve ASP.NET, unless you are using J2EE.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
hi...
I am using oracle 9i forms API in my DLL. Dll is working perfect except some time it gives error that is related to memory when the flow return from DllMain().
in DLL i am using the oracle 9i forms for the loading of oracle forms and using the object of those forms.
I am not using 'NEW' operator inside the DLL.
..please explain how to overCome the Problem...
thanks
utkarsh sharma
"Not everything that counts can be counted, and not everything that can be counted counts."
|
|
|
|
|
And how is this related to Managed Extensions for C++?
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
Hello,
I have created a Managed C++ assembly that takes window snapshots to create AVI movie files. This assembly consists of a __gc class to interface with other .NET applications and a __nogc inner class that makes calls to the Win32 API for the UI and Video For Windows calls to create the AVI. I am using IJW for all native class.
From a C# application, I attempt to call the constructor for my __gc class in the Managed C++ assembly. This works great on Windows XP, but when I try to run on Win2K Pro, I get a FileLoadException from the C++ assembly stating that it could not load an imported function.
I should be able to call the native VFW and Win32 API functions using IJW from a managed C++ class?
Any suggestions or advice you could provide would be greatly appreciated.
Thank You,
Andrew Moore
|
|
|
|
|
Obviously that function is only defined in XP....and you are building on XP.
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
Thanks leppie,
It looks like by default my compiler switches were setup to build for WinXP.
Andy
|
|
|
|
|
This sounds like a security/permissions issue. Is the 2K box loading the C++ assembly from a file share?
What are the details of the exception?
Nick Hodapp
This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.
|
|
|
|
|
Nick,
No. The 2K box is loading the C++ assembly from its own disk.
The FileLoadException comes with the following message:
System.IO.FileLoadException: A procedure imported by "AVIGenerator" could not be loaded.
"AVIGenerator" is the name of my C++ assembly. I checked all of the Win32 API functions that I'm calling and they are supported on Win2K.
Would this problem have something to do with the dll entry point function that is generated. I have looked everywhere for a possible solution so far to no avail.
Thanks for your help.
Andy Moore
|
|
|
|
|
I need to redirect the access request to a file to another file, by changing the File Allocation Address for a file from within my program.
with all the best wishes
Manoj G.R,
grmanoj@yahoo.co.in
|
|
|
|
|
I developed one DLL in VC6 through win32 dll.
Then i called this dll in vb6 and i got accurate result. No problem at all.
Now i am trying to use this dll in vb.net but result is not accurate. The reason is vc6 produce unmanage dll that vb.net cannot use. Now i need to make Managed dll.
Can you guide me step by step to make Managed Dll and send me small example for Managed DLL. Should i use VC6 or VC.net for Manage dll development.
In the example use the function to get square of a number like below
int squareMe(int x)
{
return (x*x);
}
Hope to get reply soon
|
|
|
|
|
I am not an expert but .net should be able to use a unmanaged dll without recompiling. I am not sure how to do this though.
John
|
|
|
|
|
riaz_muhammad wrote:
Can you guide me step by step to make Managed Dll and send me small example for Managed DLL.
Refer to the Visual Studio Walkthroughs[^] to get started with C++.NET.
riaz_muhammad wrote:
Should i use VC6 or VC.net for Manage dll development.
You can not use VC6 to create a managed DLL.
riaz_muhammad wrote:
Now i am trying to use this dll in vb.net but result is not accurate. The reason is vc6 produce unmanage dll that vb.net cannot use. Now i need to make Managed dll.
You CAN use your unmanaged DLL from VB.NET. Refer to the following MSDN help lik, Consuming Unmanaged DLL Functions[^].
Roger Stewart
"I Owe, I Owe, it's off to work I go..."
|
|
|
|
|
i have designed several bitmap resources in vc using 256 colors , which can display normally in resourceview. but when i added them in program, the displayed colors of them is 16 colors. the program is as follows:
COLORREF clrBk = RGB (255, 0, 255);
CBitmap bmp;
TRY{
m_ilsTamisTree.Create(IDB_TAMIS_s, 16, 1, clrBk);//sysytem
bmp.LoadBitmap(IDB_DATUM_9_s); //datum
m_ilsTamisTree.Add(&bmp, clrBk);
bmp.DeleteObject( );
...
}
CATCH(CMemoryException, e)
{
e->ReportError();
}
END_CATCH
,
i have tried to add iamge using icons like m_ilsTamisTree.Add(AfxGetApp()->LoadIcon(IDI_ICON1));
but it didn't work also,
how can i do?
arthur
|
|
|
|
|