|
raydona wrote: I would be grateful if someone could tell me what the linker errors mean
Question, you are using C++ and the .NET platform to write software for a vending machine but you don't know what a link error is, is that correct? If so, why would you choose to use a language for your project that you don't know how to use? I find this confusing at best.
led mike
|
|
|
|
|
I want to install QT4 for C++, I do not know if this is a good forum to ask this question. How can I get a copy of QT4. Can anybody tell me how to get its copy and how to install
phokojoe
|
|
|
|
|
Hi, I am using Visual Studio 2005 C++/CLI and I need to create an installer for an application. The documentation I have says to create a new project and select "InstallShield 12 Projects" but there is no selection available. Does anyone have information on how to get an installer created for a completed application?
Thanks,
Buck
|
|
|
|
|
BuckBrown wrote: The documentation I have says to create a new project and select "InstallShield 12 Projects"
I don't see anything about isntallshield here[^]
led mike
|
|
|
|
|
Hi Mike,
Since I e-mailed I discovered Microsoft documentation about 'Deployment in Visual Studio'. The docs are for Visual Studio 2003, 2005, and 2008. I printed off the docs and I am trying to implement the 'Windows Installer Deployment Tasks'. The first in the list is 'How to: Install Prerequisites in Windows Installer Deployment'. Of course when I follow the instructions of selecting the project in the Solution Explorer and selecting Properties and the in the Property Pages dialog box I expand the Configuration Properties node where I am supposed to select the build page and click the Prerequisites button. Only there is NO prerequisites button to click on (what a surprise). I'll play with the other 'How to:' items in the Windows Installer Deployment Tasks list to see what other functions don't appear to exist on my machine.
Thanks,
Buck
|
|
|
|
|
Have a look at nsis[^], I use it for my installations and it's pretty easy to use.
|
|
|
|
|
I want to get the pixel width and height of a string for a particular font.
I have searched the MSDN and i found the function below
public:
SizeF MeasureString(
String^ text,
Font^ font
}
How can i use this function in my VC++ 2005 MFC project?
I have tried to use System::Drawing but failed.
Please help.
|
|
|
|
|
Are you using C++/CLI to start with, or are you just trying to use this method without building a .NET project ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am using without building a .NET project.I have used MFC application project
|
|
|
|
|
well, if you don't make it a project that supports .NET, you obvioulsy can't use .NET libraries in it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
So you are saying there is no way to call managed code from unmanaged code
|
|
|
|
|
No, I'm saying you need to make your project managed, for it to call managed code. It can be mixed, it can still use MFC for some things.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
the title says it all.
Any help greatly appreciated
|
|
|
|
|
the forum title says it all
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.
|
|
|
|
|
Im attempting to transfer data between two programs using a Named Pipe server.
I am controling the server via the client; I can control when to start the server and when to wait for incomming connections.
My problem is the server pauses execution untill it gets a connection from the client, but since the program is paused I cant tell the client to attempt to connect to the server.
Is there a way to solve this catch-22 without using threads?
All suggestions welcomed!
|
|
|
|
|
No, I'd say threads are it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Reveille0 wrote: I cant tell the client to attempt to connect to the server
That sounds like your catch-22 there....
How can the server tell the client anything if the client is not connected?
There needs to be some connection for the client to control the server, yes?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I have some openGL projects that use auxWireCylinder(...) which was provided in glaux.lib. This library has apparently been deprecated, and is no longer available in VS 2008. Does anyone know where/how I can get this functionality back (or what I might use in its place?).
Thanks,
Tom
|
|
|
|
|
Dear Sir,
Can I have the version of DataGridViewPrinter Class In Visual c++ NET 2005 ?
Or is there a mean to use C# class in Visual c++ NET ?
This class allows to print a DataGridView.
|
|
|
|
|
I create a form Form1.h. Put a button in this form to open another form Simulation.h. In order to do this, i #include "Simulation.h", create a handler Simulation^ S1 = gcnew Simulation(); then S1->ShowDialog()
After that in Form1.h, this can be done.
btn1_click(...){ //button click event
this->btn1->Text = "ON";
S1->btn1->Text = "ON";
}
I want btn1 text in Form1 class change then btn1 text in Simulation class change also and vice versa
In Simulaion.h, i create a click event also:
btn1_click(...) {
this->btn1->Text = "OFF";
????
}
i want to use Form1's btn1 but here i cannot include Form1.h to Simulation.h so cannot create a handler of Form1 class. As it is OOP i try use this code Form1::btn1->Text but cannot also. in this case how can i use btn1 of class Form1 in class Simulation? Thank
|
|
|
|
|
|
Thank for your suggestion. I have read through article and try out the codes but i still cannot make it. In order to create a handler of other form ref class in c++/cli, i need to include the form header. By including Simulation.h in Form1.h i can easy create a handler and utilize ref class Simulation variables. But after that i want utilize Form1.h variables in Simulation.h cannot make it because i cannot inlcude Form1.h in Simulation.h. So i wanna find a way that i can use Simulation.h variable in Form1.h and can use Form1.h variable in Simulation.h at the same time.
The article is in c#, vb.net no need hearder can create the class object and just one way passing. I try the same code in c++/cli it not work.
Really hope that there is a way to do it. If not, i may just pass the value to databse to use by other which cost me some time.
|
|
|
|
|
Hi
I want to change the color of the keyword. for that i read the file and store it as a string. From that i will read the word by word file content and i will check the keyword is matched with the file content or not if it is present it change the color.
for that i wrote the code as follows
array<string^>^ dataTypesTable = gcnew array<string^>{"int","void","float","double","long"};
String^ filecontentpath = this->m_pFileOpenDialog->FileName;
String^ content = File::ReadAllText(filecontentpath);
MessageBox::Show(content);
int length = content->Length;
cli::array<string ^=""> ^str = content->Split(nullptr);
if(str->Length>0)
{
for(int j=0;j<str->Length;j++)
{
for(int i=0;i<datatypestable->Length;i++)
{
if(String::Compare(dataTypesTable[i],str[j])==0)
{
this->srcTextBox->SelectionColor = Color::Blue;
}
}
this->srcTextBox->AppendText(str[j]);
this->srcTextBox->SelectionColor = Color::Black;
}
}
now my problem is it disply the file in a single line .
can you tell me how to read the content of a file in word by word
Thanks
|
|
|
|
|
What happened to just finding the keywords in the richtextbox?
This is a relatively simple problem and you keep making it more complex but haven't
found a solution yet.
I'm confused.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi Mark,
When i was using the find methed for processing the huge file it took so much time.
so i used this method . Now i want to know how to read word by word.
Thanks
|
|
|
|