April 21st, 2009 10:20 PM
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,...
April 21st, 2009 09:30 PM
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...
April 20th, 2009 04:35 PM
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...
April 20th, 2009 04:15 PM
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];
April 20th, 2009 04:04 PM
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...
April 20th, 2009 03:14 PM
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
...
April 20th, 2009 12:27 PM
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...
April 19th, 2009 01:23 AM
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...
April 18th, 2009 03:57 AM
The problem is that there is no assumption about dseg. It should be changed to
assume cs:cseg, ds:Dseg
April 18th, 2009 03:43 AM
This is the line that is causing the error.
assume cs:cseg, ds:cseg
April 18th, 2009 03:24 AM
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...
April 17th, 2009 03:09 PM
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
April 17th, 2009 02:56 PM
Based on the header, the file is actually a BMP file. They only changed the extension to .ICO
April 16th, 2009 05:30 PM
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 :)
April 16th, 2009 08:59 AM
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...
April 15th, 2009 04:27 PM
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...
April 15th, 2009 02:59 PM
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...
April 15th, 2009 12:24 PM
What the ....????? :eek: I should have checked the OP, not the latest post :confused:
April 15th, 2009 09:02 AM
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.
...
April 14th, 2009 06:38 PM
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....
April 13th, 2009 10:07 PM
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...
April 12th, 2009 08:27 PM
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.
April 12th, 2009 05:23 PM
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...
April 10th, 2009 06:58 PM
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.
April 10th, 2009 12:41 AM
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...