|
I have noticed that in some projects are using directive:
#using <mscorelib.dll>
But if i don't include in the project, the app is fine.
What are advantage and disadvantage of using it.
|
|
|
|
|
Hard to say, if you check 'Do not treat <'s as HTML tags' then we can see what you're including.
However, if the code works fine without it, then you don't need it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
OK - if your code works fine without it then, like I said, it's not doing anything and doesn't need to be there.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hello everybody,
I'm a newbie to visual studio .net and also in assembly language. However, we have a project requiring low level programming, and decided to use assembly. So I started using PWB of microsoft but I feel awkward using a blue screen (seems like dos old days).
Using Visual C++ .Net, I created an empty project and add an asm file. I used the Custom Build Step and entered C:\masm611\ml.exe /c myfile.asm and compiled the file. It had successfully generated the obj file just like Microsoft PWB. But the problem is I still manually do linking of the obj in command prompt to generate the exe or com files.
Is there a way for visual studio to compile asm and generate the obj, exe/com, map, lst files? If there is how do we do it?
Need help
alex
|
|
|
|
|
I don't think so, at least I didn't hear about it, why do you need assembler, also I thought that .net had its own intermediate assembly language... which I think is a lot easier.
IM PROUD TO BE A GMAIL;
|
|
|
|
|
Is the intermediate assembly language your referring to in .net the masm611 assembly language? Anyway guys, I have a separate post of this same subject in the IDE section and stuart gave me a how-to. (Probably the best solution I can get so far..)
Thanks again guys..
|
|
|
|
|
Hi all,
I've created a form that opens to the maximum size. What I want to know is how I set a panels size and position as a percentage of that window so when I resize the window the panel automatically keeps the same proportions. Hope this makes sense!!
Thanks in advance.
|
|
|
|
|
I think it does. Use Anchor in IDE. By using anchor you will lock on form. Try putting all 4 directions.
|
|
|
|
|
does anyone have some source code of Screensaver written in C++ .net.(managed) .
or know how to do it ?
i have found some in MFC, win32api or C#.., but C++ managed.
tks..
|
|
|
|
|
Just use managed code, and do exactly what the other code does. The system has the same expectations of a screen saver, no matter what the language.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi all,
I have an application in C++. Now inorder to provide unicode support for the same, is there any tool which provides details like exactly which part of code has to be replaced with unicode data types?
Thanks and Regards,
Sree
|
|
|
|
|
I'm not sure I totally understand... What is the library you based the code off of? STL, QT, or what? I assume that you want to move to .NET. That's going to be the thing that decides the final answer.
If you are using standard C++ type then you should understand that characters, in most standard libraries, are 8 bits (1 byte, Ascii http://www.lookuptables.com/). Unicode is 16 bits (2 bytes). The conversion should require come simple binary casting stuff. Look up both and find the differences.
BTW, .NET loves Unicode. Look through the MSDN at System::Char and you will see that by default its a Unicode char.
|
|
|
|
|
hi,
i created a windows service application. when i installed the application using installutil.exe i didn't get any error but the application did not start (set the startType to automatic) when i restarted my computer
please advice....
|
|
|
|
|
Hello,
I have an MFC C++ application. I would like to ship the .exe to another person's machine(WinXP). What are the minimum requirements that are needed on the target machine for it to execute. It complained about a missing DLL. I am still not clear about this. Thank you in advance.
Joe
|
|
|
|
|
This has nothing to do with managed C++. What dlls you need depend on your build settings, and what code you used. MFC lives in a dll, and you need to ship that with the app if you didn't statically link. If you used C runtime functions, you may also need MSVCRT, the thing to do is to run an application like depends, that tells you what your app needs, or get a clean machine and keep adding the stuff it asks for until it runs, then ship with that stuff in future.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian,
Thanks for the reply.
Joe
|
|
|
|
|
Well my code is slpitted in: one myClasses.h and one myClasses.cpp files and it's something like this:
// *** myClasses.h: ***
#define SIZE 10
public __gc class MyClass;
public __gc class AnotherMyClass;
public __gc class MyClass{
public:
MyClass();
void myMethod();
private:
bool myArray __nogc[SIZE];
AnotherMyClass* anotherMyClass;
};
public __gc class AnotherMyClass{
public:
AnotherMyClass(bool myArray __nogc[SIZE]){ // constructor is inlined
for(int i=0; i<size; i++)
="" this-="">myArray[i] = myArray[i];
}
private:
bool myArray __nogc[SIZE];
};
//*** myClasses.cpp: ***
MyClass::MyClass(){
for(int i; i<size; i++)="" myarray[i]="true;
" anothermyclass="NULL;
}
void" myclass::mymethod(){
="" anothermyclass(myarray);
}
="" ***="" oh,="" and="" this="" is="" the="" main="" (in="" another="" file):="" ***
int="" _tmain(){
="" myclass*="" myclass="new" myclass();
="" myclass-="">myMethod();
return 0;
}
So far I receive this error, but I can't understand why and how to fix it (without using managed arrays):
error C2664: 'AnotherMyClass::AnotherMyClass' : cannot convert parameter 1 from 'bool [10]' to 'bool []'
I can't find anything on google too, help help!
|
|
|
|
|
Please modify this thread and chose "do not treat <'s as HTML tags"
|
|
|
|
|
I have created a class library that uses managed extensions for c++ [manageddll] where i have a test() unmanged function with a dll export decoration.
I later tried loading this dll from an MFC based dialog application and tried calling the test() function. The app crashes at run time.
If anybody could help me in this regard?? Thanks in advance.
|
|
|
|
|
I would guess that the loader does not recognize that the .NET managed assembly is valid. MFC has no concept of metadata nor the .NET assembly header format.
Just out of cusiosity, why would you want to do this?
|
|
|
|
|
This might be a better explanation than my response:
http://msdn.microsoft.com/msdnmag/issues/05/01/CQA/[^]
Read the final question: "Can I Call the .NET Framework from my MFC application?" (The answer is Yes). The author explains the problems associated with this type of operation.
|
|
|
|
|
I m doing this because i would like to use the same managed c++ dll for both my managed and unmanaged clients.
Check this page for calling managed c++ from an unmanged environment:
http://www.codeproject.com/dotnet/bridge.asp
This sample worked fine if i called from a win32 console application but when loaded from MFC app. It crashed during runtime.
|
|
|
|
|
I read the article and downloaded the code and read that, and I'm embarrassed to admit, that I couldn't understand how exactly it was supposed to work.
I feel terrible. My advice above, obviously was completely incorrect.
|
|
|
|
|
i have here this pice of code from a class
i dont understand what does _RSA_FZM_CLASS stand for.what must i type in as search to get more information on this type of declarations of classes
class _RSA_FZM_CLASS TRsaFuzzyAccumulation : public TRsaFuzzyOR
{
public:
//member functions
};
|
|
|
|