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

Search:

Type: Posts; User: rxbagain

Page 1 of 72 1 2 3 4

Search: Search took 0.59 seconds.

  1. Replies
    3
    Views
    1,271

    Re: Virtual Desktops

    The multiple desktop capability of windows has been there since windows NT, MS just did not make any tool to utilize this capability. But they use it in logon screens, hidden desktops for services,...
  2. Re: Destroying objects that was builded in project-mode

    The exception in your program is generated when you try to set the UserControl.Height/Width in ShowImage after the window is destroyed. This will trigger UserControl_Resize which in turn calls...
  3. Replies
    4
    Views
    1,725

    Re: Stdcall naming convention & Excel

    You can set the actual function name using "Alias"


    Declare Function getOne Lib "..PATH..\dll_for_excel.dll" Alias "_getOne@0" () As Long


    If you don't want to do that, you can add...
  4. Replies
    5
    Views
    3,530

    Re: Reading PE-structure.

    Yes, my mistake :D It should not be typecasted to IMAGE_NT_HEADERS before adding the offset. It could also be this way


    IMAGE_NT_HEADERS *inh = (IMAGE_NT_HEADERS*)&buffer[idh->e_lfanew];
  5. Replies
    7
    Views
    2,422

    Re: Passing UDT from VB 6.0 to C++ DLL

    Fixed-length string in UDT doesn't have the null terminator. Unlike C/C++, VB treats the whole length for storage. For example you have "a as String * 10" and you placed a of value "first", it will...
  6. Replies
    5
    Views
    3,530

    Re: Reading PE-structure.

    e_lfanew is the byte offset from the beginning of the data. You're trying to add it to the pointer type IMAGE_DOS_HEADER which will treat it as array of IMAGE_DOS_HEADER. It should be

    ...
  7. Replies
    7
    Views
    2,422

    Re: Passing UDT from VB 6.0 to C++ DLL

    VB should take care converting the String to ANSI string. As an example, here's the testing you can use for the C++ dll


    typedef struct {
    char *a;
    char *b;
    }VB_UDT;

    void WINAPI...
  8. Replies
    1
    Views
    3,012

    Re: Shell_NotifyIcon with NIM_MODIFY fail

    Nitification icon uses the hWnd and uID members to identify which icon in the system tray is to be modified. Having said that, you cannot modify the hWnd associated with the notification icon.

    If...
  9. Replies
    6
    Views
    10,319

    Re: operand type does not match

    The problem is that there is no assumption about dseg. It should be changed to


    assume cs:cseg, ds:Dseg
  10. Replies
    6
    Views
    10,319

    Re: operand type does not match

    This is the line that is causing the error.


    assume cs:cseg, ds:cseg
  11. Replies
    6
    Views
    10,319

    Re: operand type does not match

    DB stands for "define byte". If you want to use a WORD variable you should use "DW" (define word). In addition, you can also use DD (dword/float), DQ (int64/double precision float) and DT (extended...
  12. Replies
    11
    Views
    2,861

    Re: [RESOLVED] Determining Label Height

    Here's also another way to do it without computing the number of lines needed.


    ' module file
    Option Explicit

    Private Type RECT
    Left As Long
    Top As Long
    Right As Long
  13. Replies
    12
    Views
    9,302

    Re: invalid property value

    Based on the header, the file is actually a BMP file. They only changed the extension to .ICO
  14. Replies
    4
    Views
    768

    Re: need some more help

    I'm not sure if that error is specific to your assembler. I got no error in my testing.

    Maybe try to replace "byte" with "db" and hope it will work :)
  15. Replies
    4
    Views
    768

    Re: need some more help

    I don't think it has anything to do with the dual processor. I downloaded the stdlib from http://webster.cs.ucr.edu/AsmTools/MASM/stdlib/ but the version I got doesn't need you to declare the PSP...
  16. Replies
    1
    Views
    739

    Re: printing a character

    First, word and byte are both reserved words (data types) in assembly and you should not redefine them. You're lucky? you did not get an error in your typedef.

    Second, byte accepts values of up to...
  17. Replies
    2
    Views
    774

    Re: how to print a string with frame

    I will not give you the exact code this time. Here are the steps you can do.


    PRINT NEWLINE CHARACTER 0ah to move down the cursor
    GET THE CONTENT OF "QNT1" AND ADD 4 to it (2 additional for...
  18. Replies
    13
    Views
    13,716

    Re: check if element of a control array exists

    What the ....????? :eek: I should have checked the OP, not the latest post :confused:
  19. Replies
    13
    Views
    13,716

    Re: check if element of a control array exists

    Using VarType will work IF the control has a default member and that default member returns value other than vbObject. If the control doesn't have a default member, it will always return false.
    ...
  20. Replies
    10
    Views
    2,909

    Re: I need help to do a calc in TASM

    If you are using windows, the text will not blink unless your console is in full screen mode and you need to reset the video mode. You can not see the blink effect if the console is in normal mode....
  21. Thread: i tried(((

    by rxbagain
    Replies
    5
    Views
    1,002

    Re: i tried(((

    You get the "letter not found" error because you are still using the TEXTIN macro w/c will overwrite the content of your BUF1. You have to remove the TEXTIN in your code.

    To hardcode the character...
  22. Replies
    2
    Views
    687

    Re: synchronization question

    I don't think you need synchronization to share the vector in read mode. Just make sure that only the vector is shared, not the iterators.
  23. Re: help writing binary(?) data to a file please

    You have to open the file in Binary mode so that it will write the raw data that your have.


    Dim hFile As Integer, byteData As Byte
    byteData = &HFF
    hFile = FreeFile
    Open...
  24. Replies
    10
    Views
    2,909

    Re: I need help to do a calc in TASM

    Do you mean the variables should be validated before calling the function? Then simply place the validation in the code before you call your function and set to 7 or 31 if less than those values.
  25. Replies
    2
    Views
    1,285

    Re: GCC to MSVC ASM conversion

    The conversion works correctly but it can introduce error in case somebody tries to change the structure of oro_atomic_t and add some other members in the beginning of the structure.

    To make sure...
Results 1 to 25 of 1776
Page 1 of 72 1 2 3 4





Click Here to Expand Forum to Full Width

Featured