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

Search:

Type: Posts; User: slcotten

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,846

    Got it!

    Just wanted to say I got it working! I was trying to get the number of scroll lines for a mouse wheel "nitch". The code is below... it's convert from a sample in the Microsoft SDK.




    Public...
  2. Replies
    2
    Views
    2,846

    Hmm... I guess CopyMemory Win43 API is would do...

    Hmm... I guess CopyMemory Win43 API is would do the trick??? Going to try it and we'll find out. The destination is an osversioninfo structure.
  3. Replies
    2
    Views
    2,846

    memset equivalent

    I am trying to convert some C++ code to VB and it involves the use of the memset function. What is the equivalent VB function or would this be an API function?

    Thanks!
  4. Replies
    11
    Views
    962

    Well, thanks for the replies everyone! I think...

    Well, thanks for the replies everyone! I think it will be a great help when I start to learn this great and wonderful language. :)

    I guess, as TheCPUWizard said, the goal of learning is that I...
  5. Hi, I'm not a C++ programmer, but have been...

    Hi,

    I'm not a C++ programmer, but have been programming in VB for a while now. I was looking at switching to C++ so I was visiting this forum. You may not appreciate a "newbie's" response, but...
  6. Replies
    11
    Views
    962

    By "Win32 fundamentals" do you mean window...

    By "Win32 fundamentals" do you mean window messaging, processes, threads, etc??
  7. Replies
    11
    Views
    962

    Where to start

    Hello,

    I have been a VB 6 programmer for over two and half years now, and finding that I need to know more things about C++ to move on. I know about enough to read header (*.h) files for Win32...
  8. Replies
    0
    Views
    934

    Looking for Contract or Permanent Work

    Hello!

    I am a developer with over two years of programming experience and over four years in advanced IT matters. My areas of expertise reside in Visual Basic, ASP, and database development. ...
  9. Thread: C++ --> VB

    by slcotten
    Replies
    6
    Views
    602

    Re: C++ --> VB

    Does anyone know if this would be a proper VB translation of the C++ code in the previous post?


    bmp.bmWidthBytes = ((bmp.bmWidth + 15) And Not (15)) / 8
  10. Thread: C++ --> VB

    by slcotten
    Replies
    6
    Views
    602

    Re: C++ --> VB

    Ok... but what does the &~ in this code mean? I know that ~ is a unary operator but how would you port it to VB?

    bmp.bmWidthBytes = ((bmp.bmWidth + 15) &~15)/8;

    Thanks!
  11. Thread: C++ --> VB

    by slcotten
    Replies
    6
    Views
    602

    Re: C++ --> VB

    Would the first line be translated like this?


    Call BitBlt(ps.hdc, prect.Left, prect.Top, (prect.Right - prect.Left), (prect.Bottom - prect.Top), hdcScreenCompat, prect.Left + xCurrentScroll,...
  12. Thread: C++ --> VB

    by slcotten
    Replies
    6
    Views
    602

    C++ --> VB

    How would the following to lines of C++ code be translated to VB? Particularly the -> and &~ symbols?


    BitBlt(ps.hdc, prect->left, prect->top,
    (prect->right - prect->left),
    ...
  13. Replies
    3
    Views
    594

    Re: Integer Values to Binary File

    Oooppss... the correct code for the previous post is this:



    nCount = 1

    Open FileName for binary as #nFileNum

    Do
    ReDim Preserve g_MyArray(nCount)
  14. Replies
    3
    Views
    594

    Re: Integer Values to Binary File

    Thanks for your reply.... However I must have been unclear in my question. When adding the Array items (hereafter called records) using Statement Put to the file it adds them according the last...
  15. Replies
    3
    Views
    594

    Integer Values to Binary File

    Hello....

    I have a array of a user defined type that I am adding to a file like this:



    Open FileName for binary as #nFileNum

    for nCount = LBound(g_MyArray) to UBound(g_MyArray) step 1...
  16. Replies
    0
    Views
    494

    File Headers..... and compiling

    Hi...
    I have two issues. First, how might I add file headers to a binary file? I have to write multiple variable lenegth records to a file but I would like to add some header info before that. ...
  17. Replies
    2
    Views
    639

    Re: cbo upredictable behavior

    Right...

    I just relized that I was trying to set the value BEFORE I added the listitems :-) DUH...

    Thanks.
  18. Replies
    4
    Views
    1,209

    Re: Parsing XML Files

    Try this example

    http://www.planetsourcecode.com/xq/ASP/txtCodeId.10588/lngWId.1/qx/vb/scripts/ShowCode.htm
  19. Replies
    4
    Views
    1,209

    Re: Parsing XML Files

    Are you using the XML 3 Parser?
  20. Replies
    2
    Views
    639

    cbo upredictable behavior

    Hi....
    I have several comboboxs on my form... all of them with style property 2 - DropDownList. I read in MSDN Library that when that was the case the text property was read-only. However, on...
  21. Thread: Int to DWORD

    by slcotten
    Replies
    6
    Views
    1,334

    Re: Int to DWORD

    ' These are the basic funcions that write to the
    ' registry... additional functions are used to open keys
    ' Where ValueName = the registry value name and
    ' Setting = the value we are writing to...
  22. Thread: Int to DWORD

    by slcotten
    Replies
    6
    Views
    1,334

    Re: Int to DWORD

    Ok Say I = 0 and we add it to the registry as a DWORD value. The decimal value of the DWORD is now 48. Now we want to retrieve it from the regsitry as long and then convert it to Integer using...
  23. Thread: Int to DWORD

    by slcotten
    Replies
    6
    Views
    1,334

    Int to DWORD

    How do I convert an integer value to a DWORD value?
  24. Replies
    0
    Views
    539

    Treeview and Listview

    Hi...
    I have two questions both having to do with Listview and Treeview. First, is there anyway (such as with APIs, etc) to have flat scrollbars in the treeview such as is available with the...
  25. Thread: Undo option

    by slcotten
    Replies
    1
    Views
    507

    Undo option

    Hello....

    Does anyone have any ideas on how to implement an undo option in my program. A revert is simple enough but this is the first time I have ever wanted to use undo to reverse changes made...
Results 1 to 25 of 95
Page 1 of 4 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)