|
Hi,
I am developing a desktop application using VB.Net and using MS Access as
the database. However some of users do not have MS Access installed in their
computer. How can I deploy the application to those users without Access
installed in their PC? Do they have to install at least Access RunTime?
I wolud appreciate if any one can give me some idea.
Many thanks
Zengfu
|
|
|
|
|
To deploy a .NET app with Access to a clean user's PC they'll need:
* relevant version of .NET framework
* latest version of MDAC_TYP.exe (redist of ADO.NET)
* the MS Access .mdb file
That should work fine.
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG picture :: my first abstract photo
|
|
|
|
|
I have a DLL created in VC, I need to call it from vb. I've declared the dll functions in vb like this:
<br />
Declare Function PerfBal Lib "PSAEngine.dll" (ByVal oldperfbal As Double, ByVal NewDef As Double, ByVal VolPrepay As Double, ByVal ActAm As Double) As Double<br />
My VC++ function is:
<br />
__declspec( dllexport ) double PerfBal(double oldperfbal, double newdef, double volprepay, double actam)<br />
{<br />
double result;<br />
result=oldperfbal-newdef-volprepay-actam;<br />
return(result);<br />
}
Whenever I call it in my vb, it gives:
Run-time error '453':
Can't find DLL entry point PerfBal in PSAEngine.dll
The dll is in the same directory as my vb project and executable. I even placed the dll in the system32 direction.
I've tried to register the dll, all I get is psaengine.dll was loaded, but the dllregisterserver entry point was not found. Dllregisterserver may be be exported, or a corrupt version of psaengine.dll may be in memory.
What am I doing wrong??
|
|
|
|
|
Use dumpbin /exports on the DLL to find out if the name(s) of the DLL functions were mangled. You'll probably find that they were.
Modify your DLL's .def file to include specific
PerfBal = PerfBal
type lines and rebuild. This may well make a difference.
Steve S
|
|
|
|
|
Great! That works.
Is there a way to have the VB app find the dll without specifying the exact path to the dll in the declare?
|
|
|
|
|
Yeah. The .DLL must be in the same directory the VB .EXE is in, or in a directory on the PATH statement somewhere. But you can't have VB "hunt" it down if it is not found because you can't modify the Declare statement in code.
RageInTheMachine9532
|
|
|
|
|
I find that if I don't specify the exact path even if the dll is the same directory as the exe it still can't find it. Is that correct?
|
|
|
|
|
Never had a problem with it. I've built several VB6 projects using libraries I've built into C .DLLs. All I ever had to do was put the DLL files into the same directory as the project and add a reference to the DLL's or to their Type Library files.
RageInTheMachine9532
|
|
|
|
|
I am trying to create an application that allows the user to lookup different email client / messaging systems to allow them to import a list of contact details.
Outlook is easy enough to do but I am having some problems trying to find resources for Lotus Notes and Novell Groupwise. Has anyone tried something similar to this and can offer some light on it?
Thanks in advance!
Matthew
Live to ride. Ride to live.
|
|
|
|
|
I am sorry for asking such a trivial question, but here it goes. I have a form in vb.net that I would like to be by start up object. Every time I try to compile I get Sub Main not found. Is there a project option or something I need to set in Visual Studo.NET? If so where is it?
|
|
|
|
|
Click on your menu Project -> Properties. You Project Property Pages will show. Select Common Properties -> General in the left pane. You can then see a property called Startup Object in the right pane. Select the form you want as the startup object and click Apply.
On a side note, this is in the Help provided by the IDE. You could have solved this quicker if you looked there first
God, I pity me! - Phoncible P. Bone
If I end up Windows ME someone is going to be hurting. - One of the answers to a question for What OS are you
|
|
|
|
|
Hello All
I want to know if is there anyway to get the string length in Points?
I have the string str = "hello"
and if you call str.length, and will get 5
I know that str.length return integer.. but i want it in points..
Is 5 points equal to what str.length ( which is 5 in this case ) return in Integer ??
|
|
|
|
|
Hi,
Currently, I am using visual studio.net to program. The language used is vb.net.
I need to build an application that allows me to print preview an image and then print the image out. I have draged in a PrintPreviewDialog control from the toolbar and also a OpenFileDialog control for me to browse the image that I want to preview and print it out.In my codes i wrote the followings:
Codes:
PrintPreviewDialog1.ShowDialog()
Dim printDoc As New PrintDocument()
printDoc.DocumentName = OpenFileDialog1.FileName
PrintPreviewDialog1.Document = printDoc
However, the above codes work well for text document and not for image. If I choose an image, the output shown was a white blank piece of paper. Is there a way to change the printpreview dialog settings or there are any alternatives to preview and print an image file? Thank you in advance.
|
|
|
|
|
How can i print a report landscape with datareport in vb?
Pls answer to me
Mkh
|
|
|
|
|
Hi
1) Can i rotate text in my fix col(if my text larger than width i add to
fixrow height and rotate my text 90 degree)?
2) can i add checkbox to my flexgrid?(F.E for showing boolean data)
3) Can i print all rows and cols in my flexgrid
Pleassse answer to me
thanks
MkhProgrammer
|
|
|
|
|
Hi
1) How can i add to DETAILS label that not in my bank like counting record?
2) How can i add checkbox to details for boolean field like ACCESS2000?
3) How can each row of DETAILS section had another color? (like every other one gray and white)
4) Can i view a unknown mdb file ( for my program unknown means i
don't know it's table and fields and ...) in datareport and get
print from its data???? (LIKe report generator)
Pleasssse answer me as soon as possible
thanks
MkhProgrammer
|
|
|
|
|
Please help,
I have done an beginner application, I need to change the color the title bar of the form to be yellow instead of blue.
Thank you for you help
|
|
|
|
|
You have two choice:
First change color of windows title bar! All form changed
Second you can simulate title bar in a form without title bar with a picturebox and 3 command.
For example mail to me to post an example code for you
as soon as possible for me
MkhProgrammer
MkhProgrammer
|
|
|
|
|
Dear Sir,
could you pls send me the sample code? just a blank form with code to show the changes of the title bar of the form ( not all windows form).
Please help.
Thank you in advance.
Best Regards
Hendrik
|
|
|
|
|
I want to load a microsoft word document into a windows application form. The document that is loaded acts a background image in the form which allows the Tablet PC's user to write something on the form. After that, it allows the user to save the form into the database. Is there a way to solve this problem. Thanks.
|
|
|
|
|
I need to start a second application from within my current application. I know that the Shell function can do this but I am working with a mobile device application and Shell is not supported with it. Does anyone know of another way to do this?
Thanks
-CPlacek
|
|
|
|
|
How about System.Diagnostic.Process.Start() ?
God, I pity me! - Phoncible P. Bone
If I end up Windows ME someone is going to be hurting. - One of the answers to a question for What OS are you
|
|
|
|
|
I've built a SmartDeviceApplication in the Compact Framework. System.Diagnostic.Process.Start() is not available. Any other suggestions?
-CPlacek
|
|
|
|
|
Hello
I have a small question.
Do i need to call the Recordset.Close before i set it to nothing?
Or the destructor will close it?
Set oRsAdmin = oDb.Execute("SELECT * FROM tbAdmin " & _
"WHERE User = '" & UserId$ & "'")
oRsAdmin.Close
Set oRsAdmin = Nothing
OR
Set oRsAdmin = Nothing
Thank you
Ilya
|
|
|
|
|
oRsAdmin.Close
Set oRsAdmin = Nothing
IS right!
|
|
|
|