I have a USB HID temperature sensor. I am trying to communicate with it using VB.NET 2010 in a 64bit app I am writting. I had some code mcHID.dll that works, but it is a 32bit app and I don't want to change my whole app just for this dll.
I'm using VB.net 2010 express, where can I find the compiler option for 64bit? or, it will compile for 32bit only? or, it should work for both 32 and 64 bit in most case?I'm using a 64bit component in the program, vb express reports error when I compile it, but if I use the 32bit compnent, then it is ok.does it mean express 2010 automatically compile to 32bit? or somewhere I should set the win7 64bit (which is what i'm using).just start using win7 64bit & vb express 2010, got confused
I have compiled my app (Just standard windows controld, no third party) on my 64bit system to run on a 32Bit XP system. In have tried all the different settings (x86, x32, All) The error i get is: MyApp.exe has encountered a problem and needs to close. Sorry for the inconvenience. This is my first post here, I hope i havent managed to break any rules
I am trying to execute DiskShadow on Server 2008 R2 via Process.Start
[code]...
Now, what's happening is that the Diskshadow script fails with a "com call "(*vssobject)->initializeforbackup" failed." If I then open a command prompt/powershell prompt as administrator and execute "Diskshadow -s diskshadow.txt" manually it works just fine.
If, however, I try c:windowssyswow64Diskshadow -s diskshadow.txt I get the exact same error as when I try to run it via Process.StartSo, there seems to be some 32bit weirdness going on here when I try to run Diskshadow via Process.Start (Even though I am forcing it to use the copy in C:windowssystem32
After starting debug te program hangup. Moost of te time if DataGridViewLijsten_RowHeaderMouseClick is called. Using pause butten the program is almoost in the random routine.
i have my app code which programed on 32 bit now when i copy it to 64 bit and try to open the project i get this error Quote:Type library importer encountered a property getter 'sessionPlaylistCount' on type 'WMPLib.IWMPNowPlayingHelperDispatch' without a valid return type. The importer will attempt to import this property as a method instead.TlbImp
I'm a novice and after toying with some basic ideas on how to talk to a modem with VB.net, I think there may be much more to it than I realize. (?) I know my modem is fine, I can use hyperterminal to call out on it with no problem.So, how involved is it to talk to a modem? My initial thinking was that I could simply talk to it via a serial port using AT commands sent and rcvd as a string.(?)My modem is set up with COM2 9600 8n1.I've setup a serial port with the same parameters in my code.
A Problem in accessing a device from VB Windows cannot load the device driver for this hardware because there is a duplicate device already running in the system. (Code 42) This error is because i am using 2 devices of the same company which has the mass usb storage on it and when i install one of the device the other hides. So one is detected the Other is not. It also give a error called designed dragnonacally something...
Im needing to create a 2 applications that can talk to each other. One wil run on a server as the server application and others will run on workstations as clients. I want them to connect to the server app much like a chat program would work. I want to be able to send commands from the server to the workstations such as reboot, open this file, things like that. I also would like to be able to send the commands backwards to the server if needed as well. i think a chat program could be modified to do this by "watching" the message and if the word "reboot" comes through then the server/workstation would convert that to a command.
I use several different applications for analysis of pupil data. Each of these applications require similar or identical data but because they don't draw their information from the same sources there is often a need to enter this data more than once which obviously is a waste of time. Some of the data is accessed through the intranet via IE, other applications are standard Windows apps. I would like to create some sort of bridging application to allow data to be automatically shifted from one location to another but have no idea how to use one application to control another
With regard to getting data from the intranet, I have managed to write an application that can retrieve some (but not all) data off a particular page of HTML. It does this by searching the source HTML but some of the data that appears on the page isn't present in the source file. This is very frustrating because I can see it in the browser but can't seem to access it through my application.
What I want to produce is a form with about 20 text box's on it that are linked to a timer. That is easy, what isn't easy for me is how to get the data in a loaded form from access to another VB app. (timer form will be limited to one instance)
I have an access database which copies a string to clipboard and then opens a vb app. I have a button on that app which captures the clipboard text and moves it to an empty field starting a timer (lots of fields, keeps searching till it finds an empty field).What I want to know is: can access talk to a vb form that is already loaded and start a function?ORIf access can't talk directly to a vb app, can vb apps talk to each other and swap data (not just keystroke macros eithre)?
I can get access to copy text to the clipboard, launch a VB program that grabs the text in the clipboard and starts a timer, but can I get that VB app to talk to a second application?EDIT: I should add that VB doesn't need to talk to any tables in access, just what is in the clipboard.
EDIT: Tried to make 2 instances of the same app talk to each other using my.settings but it didn't work. Could I make them talk to each other through a file other than my.settings file OR make the my.settings file absolute regardless of how many instances?
I am not new to programming but have little experience and am trying to learn VB 2010. We have HP Procurve network switches and I know that with a telnet application I can login to the switch and it will tell me which MAC address is connected to which switch port. Im trying to write a computer inventory program to track my computers and it would be really cool if I could figure out how to determine which computer is plugged into which port on the switch. Problem is that I have no idea how to go about doing that.
Is this anything anyone has tried before or does anyone know how to go about doing it? Ive been hunting on line but havent found anything useful so far and thought Id ask here in the off chance someone knows what Im talking about.
Alright, I'm currently trying to use a Web Service to talk to an Active Directory. I've spent hours scourging the net and can't find a solution to this.The current password is Testing1234
And I want to change it to Complete9876 But I get this error message:
System.Runtime.InteropServices.COMException (0x800708C5): The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements. (Exception from HRESULT: 0x800708C5) obviously, this makes little sense, since the password does indeed meet the requirements. Here's the
I've downloaded this word counting application that says I can use it from my own app Here's some of the doc PractiCount and Invoice Enterprise OLE Automation Interface Top Previous Next Programmer's Guide to PractiCount and Invoice Enterprise OLE Automation Interface PractiCount and Invoice Enterprise Edition includes OLE Automation interface to access its internal objects and structures and to control counting and report generation from your programs.
I am writing a VB.net client to write to and read from a named pipe in byte transmission mode.I learned from the MSDN article that CallNamedPipe() only works for message-type named pipes.
So do I have other choices, or do I have to change the pipe server code to message type.
I've made Add-in for Word 2007 in VS2005.It worked well with Word 2007 and now it works well with Word 2010 32 bit.However it doesn't work with Word 2010 64 bit. The installation is successful, but the ribbon button doesn't show up.
Do you have any experience with add-ins for Office 64 bit?
I am working on Some USB reader device..i got only delphi 7.0 example code...i can able to understand some code remaining cant so below is that code.
function ReadCard(fUSB:Byte;Buffer:PChar):Integer; stdcall; external 'proRFL.DLL'; function GetDLLVersion(sDllVer:PChar):Integer; stdcall; external 'proRFL.DLL';
I'm writing a Windows Forms application in VB.Net 2010. The application's purpose is to recreate the Device Manager in VB.Net. The idea here is to capture the information provided by Device Manager and store it in a database.In turn this information could be used as a configuration management tool.My device tree is coming along nicely, with one minor exception. There are hidden devices that Device Manager does not display by default. Show Hidden Devices causes Device Manager to display these devices. My Device Manager displays them by default. I want to duplicate the Device Manager behavior of being able to hide and display these devices in my appilcation. I have had some success with this task in that I am able to hide the Plug and Play devices that are marked as hidden by windows by use of the "Don't Display In DM" flag. There is the small issue of the Non Plug and Play Device Class. Is there a similar flag for Non Plug and Play devices?
I have found a reference to the PNP_DEVICE_STATE and IRP_MN_QUERY_PNP_DEVICE_STATE IRP.It contains a flag PNP_DEVICE_DONT_DISPLAY_IN_UI.My problem is that I cannot find any guidance as to the structure of this API declare and the coding needed to use it. I'm not even sure if this API will be helpful in accomplishing my task.I want to hide the Non Plug and Play devices and device class in my tree.I am using Visual Studio 2010 Ultimate and Running Windows 7 Ultimate with all Service Packs and updates applied.
Using visual studio 2010 on a PC running Windows XP SP3 (32bit) I am trying to read the output from a serial device but only get timed out error?If I open hyper terminal I can see the output, so the hardware and connections are good and the command to send data is working as well?When debugging I have no errors, when the program is run (in debugging mode) I get a timed out error from after the do loop (test=2) All I want to do is have my device output printed to TextBoxLockOut.Text? Note "comstring" grabs my com port the serial device is using - on this computer it is com4, it is a public string
Dim inputline As String = "" Dim command As String = ""
I'm using the following code to iterate through and find windows containing specific strings in their title bars. I have two projects containing this identical information, yet for some reason - it works when targeted to x64, but FindWindowLike returns 0 always on x86. I need this to run in x86.I am developing this on Windows 7 x64, but it needs to run on my machine as well as XPx32. What I can't fathom is why it compiles/runs on x64 but not x32 (considering I'm targetting user*32*.dll)
i wrote a programm that reads the memory of a program.it worked at xp and vista but not at windows 7 i builded it with microsoft visual basic 2008 express edition.the code looks like this:
Public Declare Function GetWindowThreadProcessId Lib "User32" (ByVal hwnd As Integer, ByRef lpdwProcessId As Integer) As Integer Public Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer Public Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
coming from VB6 I've been using the windows API for many years. Now I'd lke to do the same on .NetMy question is, what would happen if I build for 'AnyCPU' and the application calls Kernel32 while running on a 64bit machine ?
I have an application that I built in VB.Net 2008 on Windows XP for Any CPU that I would like to run on Windows 7 64bit. Is this possible from Windows XP or do I need to compile and develope on Windows 7 64bit for it to work?