CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: james2432

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    11,436

    Re: Can't add class item to Collection..

    Thanks worked like a charm :D
  2. Replies
    6
    Views
    11,436

    Re: Can't add class item to Collection..

    TestMeth Class


    Private m_sX As String
    Private m_sY As String

    Public Property Get X() As String
    Line = m_sX
    End Property
  3. Replies
    6
    Views
    11,436

    Can't add class item to Collection..

    I've defined a collection in my form:


    private toDelete as new Collection


    In my delete button I have this:


    Private sub cmdDelete_Click()
  4. Replies
    5
    Views
    1,260

    Re: Passing form ref to another

    I'm so use to C/C++ where each class needs a ref (they aren't publicly available) o_O even vb.net isn't like that...vb classic is weird o_O

    Thanks for the help
  5. Replies
    5
    Views
    1,260

    Passing form ref to another

    I'm trying to pass a reference of my Main form so my child can get some properties from that from

    When I try to show the form it says:

    Compiler Error:
    Invalid use of property

    Please help :/...
  6. Replies
    2
    Views
    2,355

    Add space in front of char array

    I have a unsigned char[4000] which is passed to me. I need to add a space ' ' char in front to transform it into a pascal type string later. I was wondering how to accomplish this, preferably without...
  7. Replies
    0
    Views
    844

    [RESOLVED] C++ xll Writing to cell

    I've created an excel xll with c++ using the excel sdk from microsoft. I was wondering how to write information to a cell by calling Excel4()/Excel4v() or the Excel() wrapper.
  8. Replies
    2
    Views
    1,102

    Re: Combobox/static color

    Yeah I forgot to change this to solved

    WM_CTLCOLORSTATIC works for checkbox(text), groupbox,static text(label) instead of returning a (NULL_BRUSH) i returned a HBRUSH of the same color

    I also...
  9. Replies
    2
    Views
    3,546

    Re: String manipulation

    thanks :D works gr8
  10. Replies
    2
    Views
    3,546

    [RESOLVED] String manipulation

    I'm coming from a c# environment and I was wondering something instead of doing things on multiple lines...how to do it in one

    example: [C#]



    string foo="LOL";
    string bar="zie lime";
    ...
  11. Replies
    2
    Views
    1,102

    [RESOLVED] Combobox/static color

    I've colored my window :RGB(195,217,250)


    //Register the window class
    wc.cbSize = sizeof(WNDCLASSEX);
    wc.style = 0;
    wc.lpfnWndProc = WndProc;
    wc.cbClsExtra=0;
    wc.cbWndExtra=0;...
  12. Replies
    0
    Views
    531

    How to connect to a database?

    I have an oracle database that I would like to connect to. I can't seem to get OCCI configured, so I was wondering how I could connect without creating a DSN(through windows) I was thinking OLE DB...
  13. Replies
    2
    Views
    2,180

    Re: Combobox items problem

    Acutally I found what the problem was.. it's the height of the control. I had it set to something like 24, and when I set it to 100 I can see the items that are inside(without making it look...
  14. Replies
    2
    Views
    2,180

    [RESOLVED] Combobox items problem

    The items aren't showing up in the combobox and I don't know why.. I've tried with the send message and the combobox macro combobox is there, just not the data

    even ComboBox_AddString() doesn't...
  15. Replies
    10
    Views
    2,512

    Re: Problems creating button (C2660)

    I found the problem why it wasn't adding to the form. In the CreateWindowEx() I was useing hwndee(which was in the process of being created) which is the global variable at the top. I had to take the...
  16. Replies
    10
    Views
    2,512

    Re: Problems creating button (C2660)

    I use them up there so that I can always reference the HMENU later to find the hwnd with FindDlgWindow() so I can change settings/read them so if I do have to change the number I don't have to modify...
  17. Replies
    10
    Views
    2,512

    Re: Problems creating button (C2660)

    I have cmdOK defined at the top (see code below)

    When I use cmdOK I get the error. When I use 203(directly) it compiles




    #include <string.h>
    #include <cstring>
    #include <stdlib.h>
  18. Replies
    10
    Views
    2,512

    Re: Problems creating button (C2660)

    Same errors


    CreateWindowEx(0, /*1 Extended styles*/
    "BUTTON", /* 2 GUI ''class'' to create */
    "OK",..........................
  19. Replies
    10
    Views
    2,512

    Re: Problems creating button (C2660)

    lines creating errors (the commented lines create the same errors):



    hwndcmdOK=CreateWindowEx(0, /* 1 more or ''extended'' styles */
    TEXT("BUTTON"), /* 2 GUI ''class'' to create...
  20. Replies
    10
    Views
    2,512

    [RESOLVED] Problems creating button (C2660)

    I receive the fallowing errors:

    1>.\EnterIFSEnt.cpp(56) : error C2143: syntax error : missing ')' before ';'
    1>.\EnterIFSEnt.cpp(56) : error C2660: 'CreateWindowExA' : function does not take 10...
  21. Replies
    4
    Views
    39,729

    Re: Creating a label (WinAPI)

    it's like a textbox but with not white or boarders.. basically text to tell the user what the place is for.
    ...
  22. Replies
    4
    Views
    39,729

    Creating a label (WinAPI)

    I've been looking through the documentation of
    CreateWindow and CreateWindowEx and I can't seem to find the style to create a basic label with text.

    it's probably in static, but then again i'm...
  23. Replies
    1
    Views
    719

    [RESOLVED] dll creating window?

    I was wondering how to go about doing this...
    I have a dll that calls a c++ class that creates a window using WinAPI

    I've been fallowing this guide:...
  24. Replies
    1
    Views
    3,272

    Re: Access Violation problem

    Fix it by defining a new LPSTR(a temporary) moving the length to the temp and then making the item in array = to temp
  25. Replies
    1
    Views
    3,272

    [RESOLVED] Access Violation problem

    I'm trying to transform the LPSTR to contain the length at the start
    the access violation is here:
    func[nFuncs][i][0] = test;

    I'm creating an xLL and don't know why i'm receiving the access...
Results 1 to 25 of 31
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured