|
Have you considered that this problem has been addressed before. There should be literally 100's of solutions out there and some are probably freeware.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Do you realize you can do this with an off-the-shelf app, like Avery Labels and Word, without writing a single line of code, and have it done in the next day or two?
|
|
|
|
|
I am create a Dll with VC.It generate a TLB&DLL file(names VcDll.TLB&VcDll.DLL)
I can refer the files via select the menu item :
Project->Reference ,Then in the poped dialog,click the "Browse.."Button to add it to my object in VB6.
The the following code works:
[code]
Private Sub Form_Load()
Dim a As Long
a = VcDll.MotorAPI.fnVcDll(100)
End Sub
[/code]
The if I do the same thing in VS2005.It may occurring a compliring error:
[code]
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim a As Long
a = VcDll.MotorAPI.fnVcDll(100)
End Sub
End Class
[/code]
The error message output is:
[code]
VcDll undeclared.
[/code]
It is just a simplest sample.And above all is my full codes.
Thank you.
Yours
Gamma folk.
|
|
|
|
|
You know VB6 is a dead language right! So it would be helpfull if you could include VB6 in your title so the few who are interested can help and the rest of us can ignore the post.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Thank you for your advision.
But the problem is:
I can't use it in VS2005。I think that not all of us forget VS2005 right now.
There are no problem in VB6.But it failed in *VS2005* .
|
|
|
|
|
OK, so is the .DLL it references registered?? Use REGSVR32 for that...
|
|
|
|
|
I think in VS2005 you need to create an object of VcDLL.dll before calling its method.
After adding reference,try following code :
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim vc as new VcDll.MotorAPI
dim a as integer=vc.fnVcDll(100)
End Sub
End Class
Hope it will work.
Gagan
|
|
|
|
|
It doesn't work.Neithor VcDll or VcDll.MotorAPI is existed in the object list.So,"... as new VcDll.." will lead to a error.
Thank you.
Yours,
Gamma folk
|
|
|
|
|
I have been using a font (bundled) with my applications for many years. Today I got an email from a customer, stating that the font was locked, and their Adobe pdf printer wouldn't print it.
I searched the web, but came up empty on how to unlock a font file.
Any ideas?
|
|
|
|
|
I think you just ran acrossed a bogus error message. I've never heard of it.
You might want to contact Adobe to see if they know why it would say that.
|
|
|
|
|
My customer sent a copy of the Adobe (distiller?) window.
It clearly shows my two fonts with a yellow 'lock' icon.
It also says: "Only fonts with the appropriate permission bits will be embedded"
|
|
|
|
|
|
Hi,
How can I get processor name of the computer?
Thanks.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
You can get this using WMI and the System.Management namespace. Basically, you have to retrieve all instances of the Win32_Processor WMI class. The Name field of that class will give you what you're looking for. You can also get all kinds of other processor information from the same class.
|
|
|
|
|
code source vb.net et snmp
|
|
|
|
|
|
Binary 3.14159265358979343 Useless Ridiculous QBASIC Goodbye Vanish Soap Chemical Physics Maths Logic You Cattle Chimera Simian We apologise for the inconvenience
|
|
|
|
|
Uhhhh... What?? I realize English probably isn't your first language, but I don't think your post would make any sense at all in ANY language.
|
|
|
|
|
|
Hi
I'm struggling to create a crystal report in a VB project,
The objective of the report is to return one row of multiple database tables.
This is working by a parameter selecting an ID number in a CASE table, the CASE table contains some forgien keys related to CUSTOMER,ORDER tables etc.., i want to select these forgien keys and return the one row that they relate to in the different tables i.e get all the data from the CUSTOMER table, from using the forgien key, without having to enter another parameter.
but am struggling with the syntax.
This needs to be dynamtic, as any ID number able inputed.
so far all i have got is ...
({?CaseID} = "ALL" OR {Case.ID}={?CaseID})
which simple reurns the single row in the CASE table.
Hope this makes sence! :-S
Many Thanks
|
|
|
|
|
i want to add a "select all check box in the header column of datagrid" at runtime.i'm using vb.net 2003 & msaccess 2003.
also when user checks this checkbox all checkboxes under this columns should check & vice versa.based on this i need to update the database.i've used datagridtablestyles
& using datagridboolcolumn.pls guide me.urgent.
thanks
|
|
|
|
|
|
Hello,
Could Someone help...
I would like a certain number of lines and a certain section of text copied from an external application's window.
Trying to parse the section after getting the text from the window has been a nightmare.
However I am having a problem of highlighting text using the mouse event.
Here is as far as i have been able to go
REM ////////This activates the window
Call SendMessage(hwnd, WM_ACTIVATE, 1, 0&)
REM This is setting the cursor to the correct position i want from
SetCursorPos e + 25, b + 305
mouse_event MOUSEEVENTF_LEFTDOWN, 0&, 0&, 0&, 0&
???????????????????????????????????
REM There is something missing here which i haven't been able to
figure out.
What I need here is from the current position i need text highlighted for a rect size of from lets say.. Top = 125 Bottom = 250
Right = 350 and Left = 150...I might have the top and left mixed up...but you get the idea...
I only need text highlighted from this section and copied to the clipboard.
???????????????????????????????????
SetCursorPos e + 25, b + 307
Call SendMessage(hwnd, WM_LBUTTONDOWN, 1, 0&)
mouse_event MOUSEEVENTF_MOVE, 0&, 0&, 0&, 0&
Tried the send keys but didn't work...
REM SendKeys ("^A")
REM 'SendKeys ("^C")
Call SendMessage(hwnd, WM_LBUTTONUP, 1, 0&)
|
|
|
|
|
This solution is worse than parsing the text to get what you want. You really cannot do this using this method. Remember, Windows is a shared system, where multiple applications can run at the same time. Your technique doesn't take into account that the focus can change from your target application at any time, with, or without, the user actually doing anything.
|
|
|
|
|
Yes, you are absolutely right. Thats why i am using "Call SendMessage(hwnd, WM_ACTIVATE, 1, 0&"
to activate before i do the mouse event..
Its the my first line in the code i pasted...I knew i will get that from someone. I appreciate the feed back.
Oh Well I guess I am on my own with this..
|
|
|
|