|
You Declare 'd the function incorrectly. Mostly this is because someone used the oold VB6 declare and tried to use it in VB.NET without knowing how the basic data types work. A Long value (32 bit signed integer) in VB6 is the same as an Integer in VB.NET. In VB.NET, a Long is a 64 bit signed integer. If the function you call pushes a 32 bit value on the stack and your code pops 64 bits off, you just imbalanced the call stack.
|
|
|
|
|
Hi,
your problem probably relates to the calling conventions (things such as CDeclSpec,
StdCall). Make sure your native code and the DllImportAttribute.CallingConvention
in your managed code are agreeing; I suggest to make them both explicit, i.e. not
to rely on default values here.
|
|
|
|
|
hi im making this program that can make a screenshot of the active window (alt+printscrren) and then see what color there is in a specifik X,Y cordinate. i made a program that can take the screenshot in vb.net but i only know how to take the cordinate color with C# so do any know how to eather make a screen shot of a active windoe with C# ore see a cordinate color with VB.Net??
|
|
|
|
|
Can't you translate the C# to Visual Basic? Just re-arrange some stuff, remove some semi-colons, and then cheat with this page[^].
|
|
|
|
|
If it's only a few pixels you want, you can call GetPixel on the Bitmap object holding the screen image.
|
|
|
|
|
Dear All,
I have an application which i want to integrate with other applications. My application will be running all the time (running on the tray icon) . I have implemented the keyboard hooking to catch a hot key F1 for exmple and call my application. What i need is to read a field value from the external applicaion and call my application passing that value as a parameter (Command()...)
Please give me key about where to look
Thanks in advance
Best Regards
3ala2
|
|
|
|
|
This is not easy. Unless the applications expose this information in an API (not many do), you're going to find this a huge pain. You have to get the window handle of the window that holds the control you want to get the value from. Then you have to go through the controls, an possibly container controls, to find the control you want, then send a WM_GETTEXT message to the control and get the value back. The problem is, there's no guarantee that the control in question will respond to the message!
|
|
|
|
|
I have a 32bit application built on vb.net2003 that uses the bundled crystal reports.
It installs and runs flawlessly on XP platforms.
when I install it on Vista Business (x64), the app runs fine, but any attempt to generate a report (that is, to instantiate a derived report class, as in, "dim rpt as new rptWhataver") results in
Cannot find KeycodeV2.dll, or invalid keycode.
keycodev2.dll is in fact present, and the app was built properly with the keycode property.
again, this app, and the reports work fine in about 1000 locations around the world on XP, win2k, and (gasp!) win98se. Anybody have a suggestion or work-around?
rani
|
|
|
|
|
|
Hello,
I'm using VB.NET 2008 (framework 3.5).
I would like to check permanently if a new entry (row) is added to a table in particular, but I have no idea about how to do this... (is there some equivalent of the FileWatcher for DB ?...)
Thanks in advance
Etienne
|
|
|
|
|
The service could periodically count (SELECT COUNT(*) FROM ...) the number of rows in the table and when the count increases you know a new row was inserted.
A better solution would probably be to use a FOR INSERT trigger on the table, as described by How to: Create and Run a CLR SQL Server Trigger[^].
|
|
|
|
|
ok, i'm going to try it (with the trigger).
thanks a lot !
etienne
|
|
|
|
|
is there any pivot table kind of control in asp.net / vb.net
|
|
|
|
|
is pivot table kind of control used in data reports
spriya
|
|
|
|
|
Native in the VS toolbox?? No.
You'll have to either write one yourself or use a third party graphing library, like ZedGraph.
|
|
|
|
|
hello, ive been working on a tabbed web browser for a little while now, and it's gotten to the point where i would like to add a favorites, and a history menu, i have tried and tried to implement a history menu and a favorites menu and have failed in trying to do so.
it would be great if you could help me out
|
|
|
|
|
All you have to do is add entries to a collection. They can be as simple as adding string objects to a List(Of String), or an XML document. Either way, you can easily serialize the contents to a file to save/retrieve the list.
|
|
|
|
|
ho guys
can any body please tell me about CSLA , how usefull it is to use CSLA .
hello
|
|
|
|
|
|
Hi all.
Do you now VB.NET is object oriented? I heard somewhere that VB.NET is text oriented. Is that true ?
Thanks to you
|
|
|
|
|
Seriously? - Or just trolling?
|
|
|
|
|
YA dear vb.net is fully object oriented language.
Thanx
|
|
|
|
|
|
"Text oriented"?? Never heard of it.
Yes, VB.NET is fully object oriented, as is the entire .NET Framework BCL and .NET CLR.
|
|
|
|
|
If anyone can help with this I'd be grateful! Using VB.2008 express, I'm trying to improve my GPS tracking program by building in the ability to handle multiple large map tiles and tile them into one larger image. Previously I've used only a single map tile and let the program load the one on which the GPS plot is drawn, but there's now a need to scroll across a much larger area of the country. I've searched for code to handle this and come up with only one example which contains the line:-
bltImage = New Bitmap(8000, 8000, Imaging.PixelFormat.Format32bppPArgb)
The map tiles are then read from an array and drawn on the base image.
The '8000' values are mine as the map tiles I'm handling are 4000 pixels x 4000 pixels. I'd very much like to use a dynamic grid of 9 tiles held in the array, which requires the background image (bltImage) to be 12000 x 12000 (I'm assuming) If I use these values the code fails with either a 'Win32 error' or a 'Generic GDI+' error depending on the exact value I increase to. I can usually get away with 9000 x 9000 but I have no control over the original tile sizes and so must work in multiples of 4000. It appears not to matter which type of control I try and load the tiles into, a plain form, a picture box, or a modified version of the excellent image viewer designed by one of the contributors to this site. They all fail if the background image is increased in size to 12000 x 12000. If any can shed any light on where I'm going wrong.....
Thanks in anticipation.
Rob Brookes
|
|
|
|