| Repost: Re: DllImport for Windows CE for pocket PC device development (10 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi Chris and BJ, I am working in the same library too. I tired to use the Visual C to link to this win ce.net dll, and from Visual C , I can see the method and build with the following code: // This is the main project file for VC application project // generated using an Application Wizard. #include windows.h #include stdio.h #using mscorlib.dll #include tchar.h using namespace System::Runtime::I... |
|
| HOWTO create a copy of one database (11 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hello! Was wondering how I can create a copy of one database? FYI I'm not interrested in the data, just the fields and triggers, and so on. Which way is the easiest? Do I create a script and run it from there? Is it smart to have it inside a SP? Any idea would be greatly appreciated. I'm programming SQL 2k and VC7.0 Lars |
|
| Compiling for a standalone app (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hello, How do you build a *.exe app without having to depend on other dll's such as 'mscoree.dll', etc... I have an application I want to build, but I want to make sure that any needed dll's are compiled into the *.exe file itself. TGF |
|
| registry problem (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| when i set the value in "ScreenSaveTimeOut", the value does change, but the value in "display property . screen save program . wait(w)" doesn't change, what's the matter? |
|
| Using MFC in a Managed C++ DLL? Can I? (4 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| I have some old C code that uses MFC and some C Run Time Library. I need to be able to call this from C# I thought i'd be able to create a Managed C DLL, tell the project it was using MFC, include the .c file and be on my way. Can I use MFC in a Managed C DLL? If I build a Visual C Class Library (.Net) and tell it to use MFC in a Shared DLL I immediately get the following warning nochkclr.obj : wa... |
|
| Form background (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi. I'm using VC 7.0 do develope my MFC dialog based application. Is there some way how to set background for my form? Just like property. Drawing in runtime is unwanted. There's no problem to set background in C# project, but in MFC project I din't find any way. And the second minor question: Does MFC prject in VS.NET support the same MFC libraries just like VS 6.0 or I should provide with my pro... |
|
| How to read CPU Usage? (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| I'm doing a load balancing project(using jni) and i want to read the CPU usage from windows 2000. How can i do that? is there any api from microsoft to do so? please help me... p/s:i want to read the total CPU usage and not for the particular process only. the programming i'm using is VC . If there is any sample codes, please let me know...thanks |
|
| Buffer overrun w/ new libraries (3 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi, I'm dynamically calling the HTMLHelp function and getting a Buffer Overrun in the VC runtime library. This terminates the application. It only happens when building for Release (VS .NET 2003). The thing is, the code is unchanged from when it worked with VC 6.0. The Help file is also unchanged. Has anyone seen this kind of behavior and have any ideas what might be happening ? Thanks in advance.... |
|
| Building DLL, please help! (4 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi,All I have a question on how to build a universal DLL(Dynamic Linking Library)or Lib(static library), which could be used both in Debug and Release verisons. As i know, edition of the application which invokes the library must be the same with DLL. The application in Debug only works with the DLL in Debug, otherwise the Release is the same. Would you please give me some advice? Thanks ahead, Je... |
|
| How to use STL under VC++ (3 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| To all, I've tried to use the data structures in STL of standard C lib, but compile errors such as "vector is an undefined variable/type" here's the snippet #include vector.h .... other include file(s) int t main () { vector int vInt; vInt.push back(100); vInt.push back(20); .... other push back statements... return 0; } It seems to me that VC compiler can't identify most the C identifiers such as... |
|
| Linking Custom Function Libraries to Program (5 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi, I have a question on how to link a custom function library to my program without making it part of my program work space. I am running windows XP on a PIII machine and using VC 2003 and I am writing C Win32 Console programs. Is there a particular directory I need to save my library to? Thank you, Alex |
|
| i from the previous massage (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| i forgot to mention that i have a microsoft visual c version 6. |
|
| Serial Port Communications (3 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| I am trying to get data from the serial ports and use it in my program. Anyone know how to best to do this. I am using Visual C 6.0 to develop. |
|
| DLL newbie (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hello, Let me just begin by saying i'm pretty much lost here, so bare with me plz. Basically, I'm trying to obtain the same result one gets when using a DLL in VB6. That's I want to create a DLL with some classes on it, and be able to use them in a project. I have run into documentation explaining differents types of DLL, each one with weird declarations on how to export functions. If All I want i... |
|
| exe file (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| the program which i build to exe file was open also through the command line but just for a second and then dissappear, i just have to say that if i run the program through the compialer the program ends with a messege "press any key to continu" in this case the user had enogh time to see what the program did unlike the case i run the program as an exe file. (i just have to say that the program do... |
|
| Duplicate Definitions (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| I moved a VS 6.0 COM project to .NET 2003. It compiles and links OK in the debug configuration. When trying to build a release version, I get the following error: LIBC.lib(crt0dat.obj) : error LNK2005: osplatform already defined in atlmincrt.lib(atlinit.obj) Has anybody run into this kind of a problem? Thanks for any help, Kent |
|
| Performance of VC++ Data Structures (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| to All, I'm a newbie in VC , can anyone tell me about the performance in various Data Structures (eg. Enum, map, list, vector, hash, arrayList)? I would like to know performance on CPU and Memory Usage. eg. Mem usage may involve the mem usage on creating/deleting an element in the structure. eg. CPU performance may involve the overhead in iterating the structure (just estimation will do) By the wa... |
|
| how to build exe file (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| i try what you said and i really got an exe file but when i try to clik on the exe file the file was open for a second and closed by himself |
|
| How to write plugins using VC++ (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| To all, I've got another question. Does anybody know how to write plug ins using VC ?? Actually, my friends and I will develop a Photo enhancing system, and so we'll need some technique to allow additional packages/plugins to attach the system. (maybe need to integrate commercial plugins such as KPT6 photoshop) Then we will need to know exactly the theory behind, the architecture for the plugin si... |
|
| Using ATL server 7 for web services. (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| I have an ATL 7 web service. I need to call methods in an MFC extension DLL. I have wrapped the extension DLL with a 'normal' ( USERDLL) MFC dll and linked my web service to the normal DLL. There is code in the InitInstance() of the MFC application in the 'normal' DLL which calls the initialisation code of the extension DLL (so that MFC resources etc are correctly located). When I try to call the ... |
|
| Which mechanism is better? (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi, I have to create a dll with communication functionality. The first idea was to implement only functions for sending, and user to implement (and pass me a pointer to) function for receiving. Dll would call those receiving events in internally created thread. The other idea is mechanism from sockets. Dll has both sending and receiving functions, and the user must poll occasionally for receiving.... |
|
| _fileinfo (file handles are getting inherited by child process created via _spwanv) (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi, I have this sample program #include stdio.h #include stdlib.h #include process.h void main() { char *args[2]; int ret 0; args[0] "D:\\tmp\\Test.exe"; args[1] NULL; fileinfo 0; FILE *fp fopen("D:\\tmp\\abc.txt","w"); ret spawnv ( P NOWAIT, "D:\\tmp\\Test.exe", args); fprintf (fp, "******** TEST ********\n"); fclose(fp); if (! DeleteFile ("D:\\tmp\\abc.txt")) { printf ("\nError : %d\n", GetLastE... |
|
| peverify error (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| hi all, i'm trying to make my mc code verifiable: i'm getting this error when running peverify on my dll: [IL]: Error: [HRESULT 0x80131417]. any ideas? thanks, g. |
|
| #including .h files from a .dll project, I can't get it to work! (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| I have a .dll project with both gc and nogc classes, managed and unmanaged code. In my unmanaged code, I want to call sqrt() from math.h. So, I've #included math.h in the .cpp file, but I'm getting an unresolved external symbol linker error. I have the same code in an .exe project and it works fine. What the hell, Mel? |
|
| What's the best way to make a managed .dll that uses unmanaged classes and code? (5 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| I'm trying to create a .dll with VS.NET 2003 Architect that contains a math computational component. I need the guts of the thing to be in native code, as performance is key for that part. But, I need a .net wrapper because this "calculator" is actually a component used by an enterprise app written entirely in .net. What I want to do is have one project. I've created an MC .dll project. Its got a ... |
|