|
art_ami wrote: 'System.AccessViolationException'
IDiscovery* discObj // Pointer to unmanaged type
is never initialized in the code you posted and could be the source of the error
|
|
|
|
|
It is initialized in the constructor. I just posted part of the Form1 class.
Also it works sometimes and sometimes I get this Exception
|
|
|
|
|
Hi, I am using Visual Studio 2005 C++/CLI. I am at the stage where I am rewriting the same application several different ways. This allows me to become more familiar and comfortable with the CLI syntax. In doing so there were a couple of Forms that had a lot of controls on them. Rather than re-create the Form and add all of the controls again I decided to used the Add->Existing Item command to add the Form information. Before adding I copied over the FormX.h, FormX.cpp and FormX.rex files into my current project directory, then I added them to the project. This works great except when I decided that I needed to modify the FormX[design]. I can't seem to get the FormX[design] window to open. Can someone tell me the correct procedure to add an existing Form from another project and then be able to modify the Form in the FormX[design] window?
Thanks
Buck
|
|
|
|
|
|
Sounds like you're asking a C++ question, which belongs in the Visual C++ forum. If you want to use .NET, this is the place to ask.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Armond,
Armond Sarkisian wrote: I tried to research the cmd.exe command but it doesn't start a whole new window. Anyone can help on this?
does 'start cmd' the trick for you?
(type 'help start' to see the options of the start command)
greetings,
ralf.
|
|
|
|
|
call dos commmand.
"start"
ShellExecute(NULL,NULL,"cmd /c start",....)
|
|
|
|
|
using namespace std;
void one () {
error C2871: 'std' : does not exist or is not a namespace
: error C2601: 'one' : local function definitions are illegal
|
|
|
|
|
Did you include iostream without .h?
|
|
|
|
|
This is the C++/CLI forum, try the visual C++ forum for standard C++ questons.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Can you help me.
Help to be going to create Virtual IP using "iphlp" libarary raise just there is example code using c++
wait for your advice.
thank you.
ps : thanks is add "iphlp" library fils(iphlp.h , iphlp.dll ...)
|
|
|
|
|
Same questions on different forums dear songjacky?
|
|
|
|
|
greetings and except my humbleness in asking you for your help, my general day to day doesn't involve a lot of actual programming, so when this came up i have been beating my head over it and finally succumbed to he kindness of strangers to help get it done. this is, in essence a C++ issue, as most of the string functions available to C++ are available to me, but it is built into an interface engine, so it is really base level (stuck to the basics, loops, ifs, etc). enough babble - here is what i need to do.
I am fed the following string:
720^JONES, A ANTHONY~^JONES, J JOHN~88^JOHSON, L
which is DRNUMBER^LASTNAME, MIDDLE INITIAL FIRSTNAME~NEXT DR~ and so on.
I am tasked with stripping out the occurances of dr.s without numbers, so any case without a number before the carat and then passing the string along with the others intact.
Any help would greatly appreciated!
Jason
|
|
|
|
|
You could use a strtok() function (or CStringT::Tokenize() if you're using CString)
to move from entry to entry ('~' is the delimeter).
For each string, compare the first character to '^' and/or check if it's numeric.
If it's a valid string, output it, else continue to next string.
Also, C++ questions that aren't related to Managed C++ should be posted on
the Visual C++/MFC board.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
On the C++/CLI when I was checking this code I got this message (a compiler error, C1001)
generic<class T>
T General::Show(T value)
{
T result;
Console::WriteLine(value);
result=value+2;
return result;
}
Microsoft(R) C/C++ Optimizing Compiler has encontered a problem needs to close. We are sorry the inconvenience.
...
Please tell Microsoft about this problem.
...
...
Send Report Later Dont Send
-- modified at 9:49 Wednesday 5th September, 2007
|
|
|
|
|
I added this to a class in an existing project and it compiles fine in VS2005 XP Pro
generic<class T>
T DMe::Show(T value)
{
System::Console::WriteLine("DMe::Show");
return value;
}
|
|
|
|
|
Yeah I know I want to know why compiler shows a message for + for for other operation it shows an error?
|
|
|
|
|
|
The code shouldn't compile because of this line: result = value + 2; since not all objects define the plus operator.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Pls i need a help; i would to write a simple program in c++ console that will calculate every maths equation and functions( Simultaneous Equations;quadric equation; linear equation ...)
Thanks
|
|
|
|
|
You're using .NET to do this ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Oh right....
Schools out for back from summer
Schools back for semester
Code Project's been blown to pieces.
No more thinking
No more logic
More of Just F***ing Google it.
|
|
|
|
|
\m/ \m/
Rock and roll, man.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
So how can u help me to solve this problem anyway; anny programming language will go for it, u know i m a beginner in programming.
Thanks
|
|
|
|
|
My point is, if you're not using .NET, you're in the wrong forum. Your question is not a beginner question. Buy a book on C++ and work through it before you start choosing arbitrary tasks to achieve.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|