Search:

Type: Posts; User: Coding

Page 1 of 17 1 2 3 4

Search: Search took 0.02 seconds.

  1. I found a solution to first retrieve the...

    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...
  2. Using WinAPI to return textbox value in other app which sometimes work and not

    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...
  3. Yes you are right, I did some kind of mistake by...

    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...
  4. This is the code I have in the application. It...

    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;...
  5. Console application works when "F5" the page but not when clicking "ConsoleApp.exe"

    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:...
  6. Replies
    5
    Views
    8,558

    I am trying to do something like this but I know...

    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...
  7. Replies
    5
    Views
    8,558

    Yes, thank you.. I thought about something like...

    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...
  8. Replies
    5
    Views
    8,558

    Yes, I have found something like this. It is...

    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...
  9. Replies
    5
    Views
    8,558

    How to return BIOS serial number

    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...
  10. Replies
    1
    Views
    2,648

    How to check if a subKey exists

    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...
  11. Replies
    6
    Views
    9,045

    I have succeded to connect to the ftp server and...

    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...
  12. Replies
    6
    Views
    9,045

    Thank you, I will use port 20/21 and also look...

    Thank you, I will use port 20/21 and also look into: FtpWebRequest Class (System.Net) and see what I can start out with.
  13. Replies
    6
    Views
    9,045

    How to connect to a ftp server

    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...
  14. Thread: ::iterate

    by Coding
    Replies
    2
    Views
    1,841

    ::iterate

    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...
  15. Replies
    2
    Views
    1,738

    Ok, I dont think that is possible. I think I have...

    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...
  16. Replies
    2
    Views
    1,738

    min, max_element and accumulate

    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&#233;as.

    max_element can ex: search through a...
  17. Replies
    5
    Views
    1,787

    prog-bman and King Mir... This should be the...

    prog-bman and King Mir...

    This should be the solution. It seems to work great. Thanks a lot for your help !
  18. Replies
    5
    Views
    1,787

    Comma delimited File

    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...
  19. Replies
    12
    Views
    4,442

    Salem, I have red what you was sending me and I...

    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...
  20. Replies
    12
    Views
    4,442

    (Sometimes many different angles of the same...

    (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...
  21. Replies
    12
    Views
    4,442

    Ok :) The thing is that I have a program that...

    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...
  22. Replies
    12
    Views
    4,442

    Now I understand. The code works great. I have to...

    Now I understand. The code works great. I have to use that containers to iterate through them.
    Thanks LaserLight and anon !
  23. Replies
    12
    Views
    4,442

    iterate a 3d vector

    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...
  24. Thread: 3D vector

    by Coding
    Replies
    15
    Views
    4,480

    >> Depending on your problem I will describe...

    >> 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...
  25. Thread: 3D vector

    by Coding
    Replies
    15
    Views
    4,480

    This made it clear for me. Nice description. So...

    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...
Results 1 to 25 of 406
Page 1 of 17 1 2 3 4