I found a solution to first retrieve the title.Capacity with the code below and this seem to work.
[DllImport("user32.dll")]
static extern IntPtr SendMessage(IntPtr hWnd, uint...
Type: Posts; User: Coding
I found a solution to first retrieve the title.Capacity with the code below and this seem to work.
[DllImport("user32.dll")]
static extern IntPtr SendMessage(IntPtr hWnd, uint...
Hello,
I am trying to use the WinAPI to return a String that resides in a textbox in an another open application in windows.
I use the below code which works if the string in the textbox is...
Yes you are right, I did some kind of mistake by forgetting to take "Build Solution" F6 and not only F5. When doing that the new changes
was also made to the .exe file itself. So I think it is...
This is the code I have in the application. It only runs when debugging with F5, but not when doubleclick the .exe file in the release folder?
using System;
using System.Collections.Generic;...
Hi,
I have created a console application with a little code that creates a file.
The code works fine when debugging with F5 but when I try to execute the file by doubleclick it, nothing happens:...
I am trying to do something like this but I know I dont pass the oSerialNumbers in any way:
for( int i = 0; i < oSerialNumbers->Count; i++ )
{
System::Management::ManagementObject^ mo...
Yes, thank you.. I thought about something like that also.
I did something like this. As I understand the oSerialNumbers contains objects but I dont know how I will convert them to Strings.
I am...
Yes, I have found something like this. It is originally a C# code that I am trying to convert to C++ but I have problem to understand when it comes to foreach wich is a C# code that does´nt exist in...
How would it be possible to return the BIOS serial number or perheps better the motherboard serial number.
I have googled for hours but cant find an example of this that fits with VC++ 2008 Express...
How would it be possible to check if a subKey exist in the Classes root in Registry Editor. My attemt is like follows:
//Compiler Error
'Microsoft::Win32::RegistryKey' : class does not have a...
I have succeded to connect to the ftp server and also the file that I want to read like this. That was really nice :)
I also succeded to read the lines from the file. Then I am trying to write...
Thank you, I will use port 20/21 and also look into: FtpWebRequest Class (System.Net) and see what I can start out with.
Hi,
What I am trying to do is to connect to my ftp server where I will read and write to a file that is located like this:
"Path\\This.txt";
I have googled around for 2 days but I cant find...
I have a way to ::iterate the dimensions for a vector as in the first code.
Now I am using a List as in the second code and looking for
how this list will iterate in the same way as for the vector...
Ok, I dont think that is possible. I think I have to use the System:: to find any members for this.
I did find this function but it only tells wich of the argument that has the greatest value(wich...
I am trying to find functions in the managed C++ that equals the 3 functions below. Though I have a problem to find these.
Would be very happy for any idéas.
max_element can ex: search through a...
prog-bman and King Mir...
This should be the solution. It seems to work great. Thanks a lot for your help !
I am trying to use StreamReader to read a file and to separate the lines that I read by commas (Del).
I think I have managed to Read the file so I will have the Line in the StringLine.
Now is my...
Salem, I have red what you was sending me and I do understand. It might be wrong of me to do.
I did not meen anything bad about it to know anyway. I learn from the info : )
Thank you for this...
(Sometimes many different angles of the same problem is good especially when I find it difficult to get a good solution to as an important function. Nothing bad with that I hope. This type of...
Ok :) The thing is that I have a program that create files with text inside. Each files text will be put in 3:rd dimension of the vector.
Actually all text will be put in the 3:rd dimension and...
Now I understand. The code works great. I have to use that containers to iterate through them.
Thanks LaserLight and anon !
I have declared a vector with 3 Dimensions with the first code below.
Then I have managed to push_back all the 3 dimensions so my vector is filled up like this:
vector1[2][2][2]
typedef...
>> Depending on your problem
I will describe excatly what I am doing to get a better picture, I am a little confused myself that I am thinking right.
For the moment I have a 2D vector that...
This made it clear for me. Nice description.
So if I understand right you declare 2D to 100 elements and 3D to 10 elements.
Then you push_back "A string." to abc[0][0][0]
I did it like below but...