|
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
Thanks, but the problem was only solved when I used static linking instead of dynamic linking of multithreaded C library
ARSALAN MALIK
|
|
|
|
|
Arsalan Malik wrote: the problem was only solved when I used static linking
In that case, you either deployed a debug build, or didn't install the CRT
libraries properly on the target machine.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
How to use an Object (like datagridview) in a thread?
I mean cross-thread operations...I tried to use CheckForIllegalCrossThreadCalls=false
but as MSDN says it is unsafe and also it dosn't run well...
|
|
|
|
|
Hi all
I am launching from my C++/Cli console application a child process using System::Diagnostics::Process class.
This child process throws an exception and the damned "do you wish to debug" window .
Is there any way to trap this kind of exception in my code?
Many Thanks
ManuStone
|
|
|
|
|
exceptions are a stack mechanism, a parent process has no access to a child process stack.
led mike
|
|
|
|
|
Hello,
I have a problem with a mixed mode dll. In this dll it is a class (#pragma unmanaged) which contains a singleton. But now I have a porblem during unloading the program. During unload the program I became allways the message "Unhandled exception at 0x7c812a5b in Test.exe: 0xC0020001: The string binding is invalid".
I have searched already a lot around the internet but there are a lot of messages regarding this problem. The most have only a solution for VS2003 and not VS2005. I have tested all what I have found.
It is really easy to reproduce this problem. You need only a mixed mode dll and a unmanaged class with an singleton (the problems happens also with automatic atexit registration and also in manual)
Best regards
Hansjörg
|
|
|
|
|
Have you tried freeing the Singleton prior to the process exiting?
led mike
|
|
|
|
|
How I should free the singleton prior to process exiting? It is freeing automatically and I don't wont an explicitly call to a function.
Best regards
Hansjörg
|
|
|
|
|
hansipet wrote: I don't wont an explicitly call to a function.
Just as a way of testing to see if it solves the problem, why not?
led mike
|
|
|
|
|
What is the ways to use vb and c# code in vc++.net application program? Thx.
|
|
|
|
|
Make an assembly and then reference it from another project.
led mike
|
|
|
|
|
What is the assembly you mean? Is it a module(.def) or dll?
|
|
|
|
|
|
Member 4542272 wrote: Can somebody tell me step by step how to build an on-screen keyboard or what should i learn to make it?
I don't understand. Certainly you know how to make a button with a single letter for the text label right?
led mike
|
|
|
|
|
I have connected my application with the Microsoft Access database, via ADO.NET OLEDB. I can insert and edit data, but I have no idea how to search the database, or just to select some record and to insert that into some string.
Here is a example for inserting a new record
String ^strData = "INSERT INTO Continents VALUES('Abcd',12345678,87654321);";<br />
OleDbCommand ^cmdDatabase=gcnew OleDbCommand(strData, oleDbConnection1);<br />
cmdDatabase->ExecuteNonQuery();
Please help.
|
|
|
|
|
Select, Insert, Search ,.... are all SQL commands. Please try a book about Sql.
Sourie
|
|
|
|
|
Hi i'm wondering if the console could be viewed in windows forms?
I'm not sure what the line would be to view the console.
|
|
|
|
|
gman2008 wrote: The code that connects to the server was originally a console application and I have incorporated that code into the interface.
gman2008 wrote: I'm just not sure why the console is not showing up.
Because there isn't one since you just took the code and put it in a Windows Forms application.
gman2008 wrote: I don't want this information to be displayed to the user on the form but as a background job in a windows console.
Ok but it doesn't need to be a Console. You can just create a 2nd form and display it there. David Crow has sort of explained that already without the 2nd form part. Based on your apparent beginners level you will likely have some difficulty doing this in any way you attempt to do it. You probably want to do some reading[^] on creating multiple forms, particularly Modeless forms.
led mike
|
|
|
|
|
First off - a bit of background:
For a project i'm working on I need to distribute objects to groups of users based on a number of different algorithms, my idea was to store the state for each algorithm inside their respective functions using static variables. This was to be done in C# until I realised C# doesn't support this functionality but i know C++ does. Sooo ...
Does Managed C++ support static variables inside functions in the same way as standard C++ does or is it a limitation of the CLR that means this functionality isn't available in .NET?
Thanks
Richard
Richard Green
modified on Thursday, January 24, 2008 7:43:20 AM
|
|
|
|
|
Never mind, I refactored my code so each algorithm is inside its own class and can now use static class members to store current state.
Richard
Richard Green
|
|
|
|
|
That is the right way to do it, whatever language you choose. State belongs to an object,
not to a function.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Yeah, it was just one of those mornings eariler - took a 5min break came back and realised I was going about it backwards
Richard Green
|
|
|
|
|
I want to develop a c++ application through which i can activate and deactivat my network connection in Fedora.
Thanks in advance
|
|
|
|