Hello, is there any possibility available to get the projectname during the compiletime? I need the projectname as string... Best regards Hansjörg
hansipet
Posts
-
Get ProjectName at compiletime -
class librariesHello, in our company we have a solution with a lot of (dynamic)ibraries which we wont use in all of our projects. Now to use the unmanaged libraries is not a big problem. here we can use autolink to link agains the right library (debug mode and so on..). How I can solve the problem to make a reference to the right mixed library (the designer should also work!)? Best regards Hansjörg
-
The string binding is invalidHow 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
-
The string binding is invalidHello, 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
-
Configuration frameworkHello, I search some configuration framework with which I can make application configuration. Edit inside the application, load and save a new configuration. The property grid is for sure usefull to make such a framework, but it is only a part of it... Til now I have found NINI which looks good. But it provides only to part of saving and loading...I search also the part of the graphical representation of the configuration data. Best regards Hansjörg
-
Configuration frameworkHello, anyone knows if there is a configuration framework available which provides saving of configuration and edit the configuration in an graphical editor.. Best regards Hansjörg
-
xml Stream to remote clientHow I can provide a pseudo root element?
-
xml Stream to remote clientHello, I want to send log-data to a client over TCP/IP and UDP. As data format I think the best way is to use XML. Now I search a possibilty to make a well formed Xml file from the data. I have found some solutions with External entities. But here I have the problem that I have an live stream and I don't want to make allways a new file of the stream. What is the best solution to do this? It would be great If in the future I have the possibilty to open the log-server also with an internet explorer...may be someone can give me some hints... Best regards Hansjörg
-
xml Stream to remote clientHello, I want to send log-data to a client over TCP/IP and UDP. As data format I think the best way is to use XML. Now I search a possibilty to make a well formed Xml file from the data. I have found some solutions with External entities. But here I have the problem that I have an live stream and I don't want to make allways a new file of the stream. What is the best solution to do this? It would be great If in the future I have the possibilty to open the log-server with an internet explorer...may be someone can give me some hints... Best regards Hansjörg
-
Warnings in c++/cli that make me a lot of headacheThank you very much!!!
-
Warnings in c++/cli that make me a lot of headacheThank you very much! Yes I know about the speed bumps but I'm careful with every transition (mostly from windows forms to unmanaged code)... Best regards Hansjörg
-
Warnings in c++/cli that make me a lot of headacheHello, advice 2 was really good. It works! The only thing that I don't have tested :-( for the first point: I have a mixed c++/cli (for speed reasons) program. And for that I have in a few assemblies classes which are totally unmanaged:
#pragma managed(push,off) class Test { static std::wstring teststr; //some other functions... }
In this class I don't have the possibility to use a managed string class. And the only way (that I know) to initialize the static member isstd::wstring Test::teststr = L"";
Isn't it? What do you do in that case? Best regards Hansjörg -
Warnings in c++/cli that make me a lot of headacheOkay I understand the problems, but what I can do? How I can have the warnings away (not only with pragma)? 1) I need unmanaged classes and there I have static instances... 2) I understand also this, but in this case the column is a integer...What I have to do? Best regards Hansjörg
-
Warnings in c++/cli that make me a lot of headacheHello, I have a few warnings in c++/ cli that I don't know how to resolve: 1) Warning 1 warning C4835: 'startupDirectory' : the initializer for exported data will not be run until managed code is first executed in the host assembly FileUtils.cpp 76 okay in this there is a unmanaged class (#pragma managed(push,off)) with a static variable
class CFileUtils{ std::wstring startupDirectory(L""); }
and in the c++ filestd::wstring CFileUtils::startupDirectory(L"");
2) Warning 6 warning C4965: implicit box of integer 0; use nullptr or explicit cast AlarmViewerControl.h 594 in this case I have the following code. I have tested already all casts that I know...DataRow ^dr = dt->NewRow(); dr["clmId"] = 0;
Best regards and thanks for any hint! Hansjörg -
Convert vector to managed arrayI think everyone knows that code can be written, compiled and execute. But not every code is the best and fastest solution for a given a problem. I think it would be better when you don't give such stupid hints!
-
Convert vector to managed arrayHello, Is there an easy and fast way to convert an vector to a managed array? Best regards Hansjörg
-
Fast possiblity to send data from Server to ClientI'm not sure at the moment if this works. The main purpose of this application is to send the log data to other connected clients. For that I don't wan't to poll allways the server.. but maybe that there is possibility to use the stream! do you know if it is possible to deserialize objectes allways from the same stream? Best regards and many thanks
-
Fast possiblity to send data from Server to Clientanother thing that I have forgotten...the data is allways a instance of the same class Thanks Hansjörg
-
Fast possiblity to send data from Server to ClientHello, I search for a fast possibility to send data from a server to the client. It should be possible to send the data from one PC to the other. For some other functions the server implements at the moment a remote interface with RegisterWellKnownServiceType... What is the best possibity to send data (in worst case it could be about 1Mb/s) to the client? Best regards Hansjörg
-
Get Ip address of the interface which is used for a connection to another pcHello, Is it possible to get the ip address of the interface which is used when I send some data to another pc. Best regards Hansjörg