Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
67% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
3 Commented Posts
0 Endorsements
Ranked #2K
~12.0K People Reached
Favorite Forums
Favorite Tags
c++ x 112

50 Posted Topics

Member Avatar for Liszt

I try to change the icon for the application file in the debug folder. In the properties, there is no choise where you can do this but if I create a shortcut of this application file, then it is possible. Is there a method to create an icon on the …

Member Avatar for Ancient Dragon
0
91
Member Avatar for Liszt

If you have done a program in VC++ 2008, what is the procedure to do a release and a "Finished" program of this. In the "Form1 Property Pages", I have under General choosed: Configuration: [I]Release[/I] Platform: [I]Active(Win32)[/I]Output Directory: C:\ Intermediate Directory: [I]C:\[/I] When I now compile the application using F7, …

Member Avatar for Liszt
0
178
Member Avatar for Liszt

For the moment I am getting the computers name with this code, but perheps there could be others and better ways to get a computers unique "ID". I am searching for a way to identify a computer so a software can recognice that computer in order to work. The very …

Member Avatar for Liszt
0
240
Member Avatar for dev565

You could use the File::Exists to first check if that file exists and then it will not through an exception. [code] String^ FileOne = "C:\\File1.txt"; String^ FileTwo = "C:\\File2.txt"; if( File::Exists(FileOne) { File::Copy(FileOne, FileTwo); } [/code] or [code] String^ FileOne = "C:\\File1.txt"; String^ FileTwo = "C:\\File2.txt"; if( File::Exists(FileOne) { try …

Member Avatar for Liszt
0
112
Member Avatar for Liszt

I use this command to check for the Computername wich returns: [code] SystemInformation::ComputerName->ToString(); //returns: MYCOMP-EG03R8F [/code] When manually rightclicking "My Computer" and check what name I have, it says with lowcase letters: [B]mycomp-eg03r8f[/B] So it doesn´t return the correct name. It shows Capitals. But if I do this command instead: …

Member Avatar for Liszt
0
209
Member Avatar for spectrum6125

Just an alternative on the way to open browsers: [code] String^ myURL = "http://www.google.com"; System::Diagnostics::Process::Start("iexplore.exe", myURL ); [/code] I beleive what you have to do is to extract the login and password as two strings and then create a new string (myURL) like this: [code] String^ myURL = "http://www.google.com"; String^ …

Member Avatar for Sky Diploma
0
115
Member Avatar for Liszt

I wonder if anyone know if VC++ 2008 express edition have the possibility to use Secure FTP (SFTP). As I have understood that is not possible. (I am not talking about the SSL cerificate over FTP). If not, I am searching for a library that goes with this. I have …

Member Avatar for Ancient Dragon
0
124
Member Avatar for Liszt

How would it be possible to check if a subKey exist in the Classes root in Registry Editor. My attemt is like follows but my compiler doesn´t like it. 'Microsoft::Win32::RegistryKey' : class does not have a copy-constructor no conversion from 'nullptr' to 'Microsoft::Win32::RegistryKey' [code] Microsoft::Win32::RegistryKey subKey1 = Microsoft::Win32::Registry::ClassesRoot->OpenSubKey("one\\two"); if( subKey1 …

Member Avatar for Liszt
0
368
Member Avatar for Liszt

I have a big question that keeps asking me if it is a correct or good idéa to create a subkey on a users computer in order for a software to work. The software will create and check if that subkey exists in the below directory in order for that …

Member Avatar for Liszt
0
82
Member Avatar for Liszt

I have for example a ftp server with the address ftp.mywebsite.com On this ftp server I have a path: FileFolder\\file1.txt What I wonder is how it would be possible to connect to this ftp server and read/write to that file. Is there any good articles of how this is done …

Member Avatar for Liszt
0
1K
Member Avatar for Liszt

I have a general question about how it would be possible to protect a software from copying. I have done a software that will be able to download from a website, the user will install the software on his/hers computer. How could it be possible to protect this software from …

Member Avatar for Liszt
0
104
Member Avatar for Liszt

I am trying to set up an emailprogram, the first code that I try to compile is this where I set an emailTo and emailFrom in the arguments of MailMessage. When I compile this code, I have an errormessage that says. [I]'System::Net::Mail::MailMessage' : class does not have a copy-constructor[/I] What …

Member Avatar for Liszt
0
573
Member Avatar for Liszt

I have made a program that stores a file like this: [code] ofstream out; out.open("C:\\reg.txt"); [/code] This file is used everytime a program starts in order to find if the encrypted password is correct within this file. This works without any problem on my computer, using XP Proffessional and where …

Member Avatar for mostermand
0
171
Member Avatar for Liszt

I have developed an application in Visual C++ 2008 Express Edition. In order to run a program on your computer you will need the Microsoft .NET Framework 3.5 installed on your computer from this link: [url]http://www.microsoft.com/downloads/details.aspx?FamilyId=333325FD-AE52-4E35-B531-508D977D32A6&displaylang=en[/url] Now if I will distribute my program and make a setup.exe file for this …

Member Avatar for jencas
0
90
Member Avatar for Liszt
Member Avatar for Liszt
0
113
Member Avatar for Liszt

I have done a windows form application that I have debugged in "Release Mode". I need to ask 2 questions at the same time because I think they depend on eachother and that is my questionmark: 1. When starting this program, there will be a panel visible where you will …

Member Avatar for Liszt
0
136
Member Avatar for Liszt

I have made a Form application that contains of 2 Forms. In these 2 Forms I have added controls and a lot of code behind. How will I "Close the code" to this project so no one can open it and see all my code that I have done. I …

Member Avatar for Liszt
0
86
Member Avatar for Liszt

How would it be possible to code inside a button that the Browser will open and go to address: [url]http://www.google.com[/url] private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { //Code here to go to: [url]http://www.google.com[/url] ? }

Member Avatar for MosaicFuneral
0
259
Member Avatar for Liszt

I use Visual Web Developer 2008 and I wonder. If you look at this webpage as you are reading on now at the very top. You can see that <DANIWEB> Control Panel Donate etc.. is like a yellow picture. Question is: If this is a yellow picture wich I can …

Member Avatar for Aneesh_Argent
0
59
Member Avatar for Liszt

I use Visual Web Developer 2008 and have just started out a project. When pressing F5 that compiles the project the program opens a blanc Explorer window. What I now wonder is how it is possible to make this whole window to be completely Black instead. I am searching the …

Member Avatar for Liszt
0
86
Member Avatar for Liszt

I am an absolute beginner when it comes to create WebSites and are perheps out to catch some basic knowledge of the steps of creating a page etc... I am not a beginner in C# and C++ and know these languages Well. I have downloaded[COLOR="Green"] Visual Web Developer 2008 Express …

Member Avatar for Fungus1487
0
114
Member Avatar for Liszt

I am using "Microsoft Visual Web Developer 2008 Express Edition". I have created a First page with a button and 2 textBoxes( see attached file) In my project I have added a new item/Page 2 to this project. What I now is trying to do or wonder how it is …

Member Avatar for Liszt
0
110
Member Avatar for Lukezzz

Try to open the ToolBox and rightclick the surface. You should have any choise where you can add/remove items. Then somewhere here you will be able to Browse you .DLL and choose it to your toolbox.

Member Avatar for Lukezzz
0
87
Member Avatar for Liszt

I have put about 30 trasparent buttons on a Form wich meens that all these buttons are invisible. When I open this Form, you will see all these trasparent/ invisible buttoncontrols "flicker" in a white color. This flickering process takes about 2 seconds until the Form is 'ready'. What does …

Member Avatar for Liszt
0
100
Member Avatar for Lukezzz

I am not sure if this could solve it in the constructor of the button. [code] [COLOR="Green"]// Draw the button's border.[/COLOR] e->Graphics->DrawEllipse(System::Drawing::Pens::Transparent, newRectangle); [/code]

Member Avatar for Liszt
0
3K
Member Avatar for Lukezzz

Try this: [code] #include "Form2.h" Form2^ newform2 = gcnew Form[COLOR="Red"]2[/COLOR]; newform2->ShowDialog(); [/code]

Member Avatar for Lukezzz
0
105
Member Avatar for Liszt

Why does I encounter a compileerror when doing this. Compile error says. 'Form3' : undeclared identifier 'Form4' : undeclared identifier Inside of Form4.h: [code] #include "Form3.h" Form3 ^form3 = gcnew Form3; form3->ShowDialog(); [/code] Inside of Form3.h: [code] #include "Form4.h" Form4 ^form4 = gcnew Form4; form4->ShowDialog(); [/code]

Member Avatar for Liszt
0
119
Member Avatar for Liszt

I have a ThirdPart program that appends text to a file randomly. I dont know how this code is doing this, thinking of opening and closing the file. I have simulated that scenario by: //Process 1 Appends Text to File //Process 2 Reads Text From File Now I am writing …

0
69
Member Avatar for Liszt

How could it be possible to synchronize the computertime to ex: GMT or any timeserver on the internet ?

Member Avatar for Liszt
0
166
Member Avatar for Liszt

I try to get the events working in the datagrid for this. With this code I change BackColor from black to MediumSeaGreen. [code] dataGridView1->Rows[3]->Cells[10]->Style->BackColor = Color::MediumSeaGreen; [/code] When the BackColor is changed, should´t this messagebox appear ? It doesn´t. I have also tried the event BackgroundColorChanged. [code] private: System::Void dataGridView1_CellStyleChanged(System::Object^ …

0
50
Member Avatar for Liszt

What is the way to change size in a cell in dataGridView to 8.25 This does not seem to work. [code] dataGridView1->Rows[b]->Cells[10]->Style->Font->Size = Font->Size(8.25F); [/code]

Member Avatar for Liszt
0
114
Member Avatar for Liszt

I have to doublecheck if this is the case. When using the fileSystemWatcher in the application where an event is checking for Changes in a file. With just starting the application where no changes events is fired at all the processor (AMD double core) Peeks at 50 % constantly. Is …

Member Avatar for Liszt
0
154
Member Avatar for Liszt

I am searching for a way to change the backgroundcolor of a specific cell to red and the back to black again. With this code sometimes almost all cells is blinking because I have to use Application:: DoEvents to update the BackColor. How can I change this like this without …

0
48
Member Avatar for tag234

I am not sure what you meen but if you have the string: string str = "X04030812$" and for example want to substring "04" you can do: [code] str.substr(1,2); [/code] Where 1 is the startingposition in the string and 2 is the length. Then you can convert it to int: …

Member Avatar for tag234
0
124
Member Avatar for Liszt

I am using the fileSystemWatcher and the _Changed event to indicate what file that was LastWritten to in a folder and then I want to read this file. It seems that the code that I have below is executing twice and the second time the code runs I get this …

Member Avatar for Liszt
0
254
Member Avatar for Liszt

I have to confirm how the buffersize is working for the fileSystemWatcher. I have found this explanation on google: [I]The FileSystemWatcher class works by capturing all of the relevant file and older changes and placing them into a buffer. This is then processed one change at a time until all …

Member Avatar for Narue
0
103
Member Avatar for Balinor

Perheps [code] while (STAMINA || ENM_STAMINA != 0 ) [/code] never will be false if ENM_STAMINA reduces by [code] ENM_STAMINA = ENM_STAMINA - 2; [/code] as it was declared to 7. In that case it will pass zero from +1 to -1 and therefore the loop will be infinite.

Member Avatar for Denniz
0
90
Member Avatar for Liszt

I am working with the backgroundworker and the datagridview. I have noticed a difference. I have put a loop that puts a value to one cell in the datagrid first in a buttonevent. After this loop is finished wich creates a timer textfile that tells how long the process did …

Member Avatar for Liszt
0
293
Member Avatar for Traicey

If you want to add items to a listview, you can do like this. Hope it helps. [code] (Read contents from file and get strings/text) String^ TextFromFile; listView1->Items->Add(TextFromFile); [/code] [QUOTE=Traicey;716816]Guys I need to read from a text file and display to a listview I have tried google but nothing like …

Member Avatar for Liszt
0
102
Member Avatar for Liszt

I will try to catch a few idéas of how to check changes in a large number of files. I dont know what oppurtunities there is to do that. I will have a folder that contains perheps thousands of files wich will be written to randomly. How is it possible …

Member Avatar for Liszt
0
84
Member Avatar for Liszt

When writing a timeformat in a textbox using the event _TextChanged and when timeformat has reached the written format "HH:MM", the ->RunWorkerAsync() command should execute and create a file but it seems that the backgroundworker does not execute the code inside. I wonder why this is not happening, have I …

0
57
Member Avatar for Liszt

With the code below I want to execute a task if the day is saturday and if the minute is >= 14. There is 2 things I wonder here. The code below is an infinite loop that never stops. So it checks for if this criteria is true but when …

Member Avatar for Liszt
0
183
Member Avatar for Liszt

I have encountered a problem when using the backgroundworker. What I do is that I will have the oppurtunity to press the cancelbutton to stop the backgroundworker. The code that I am using below works without any problem as expected. The thing that happens is that an error message occurs …

Member Avatar for Liszt
0
604
Member Avatar for chern4ever

Perheps while you read the file you can use another stringvariable like: [code] string Addd1d2; Addd1d2 = data1 + " " + data2; [/code] [QUOTE=chern4ever;713321]example of my txt file : hi hi hi hi data1 will be hi data2 will be hi data3 will be hi data4 will be hi …

Member Avatar for VernonDozier
0
233
Member Avatar for Nemoticchigga

I am not sure if you could meen something like this if you know the path where the bitmap is... Hope it helps [code] System::IO::File::Delete("C:\\TempImage2.bmp"); [/code] [QUOTE=Nemoticchigga;714071]I want to delete a bitmap. How do I do this in c++. DestBitmap->Save("TempImage2.bmp"); . . . . . //later something like Delete("TempImage2.bmp"); is …

Member Avatar for Liszt
0
129
Member Avatar for Liszt

How is it possbile to return the current hour, minute and DayOfWeek. I have tried out these examples. The two first returns 0 wich is strange. And the third does not go through the compiler. What can I be missing ? [code] System::DateTime moment = System::DateTime(); int hour = moment.Hour; …

Member Avatar for skatamatic
0
81
Member Avatar for faisal_pedaw

A struct can look like this. You will call the struct for sorting in this case, mysort1 as a third argument in a sort, so you pass one a1 and a2 to the struct. [code] struct mysort1 { bool operator () ( const std::string& a1, const std::string& b1 ) { …

Member Avatar for skatamatic
0
127
Member Avatar for Liszt

I have a little problem to dock a grid with a panel. What i have done is to first dock a panel in the top of the form. What i then want to do is to dock a datagrid so it Fills the whole form but not so it will …

Member Avatar for Liszt
0
156
Member Avatar for Liszt

im quite new to code and are using c++ to read files. Through some examples i have managed to read a file from top to bottom like this. The problem is that i will need to read the file from bottom to top instead. Is there a reversable method for …

Member Avatar for Liszt
0
164
Member Avatar for emotionalone

Wonder if it could be possible for you to use ifstream and getline to get the lines and then use this line to put to you output file. This should read the file to the end. [code] ifstream PS("SOURCE.TXT"); ofstream pD; pD.open("DEST.TXT"); string line; while( getline(PS, line) ) { pD …

Member Avatar for Ancient Dragon
0
512

The End.