Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Data Type Conversion From Visual C++ To Visual Basic


I'm trying to convert some code from Visual C++ to Visual Basic. There are some types, however, that I cannot seem to figure out what they should be. The C++ types are dpecifically WORD and DWORD. What should they be in Visual Basic? I thought DWORD is a Long, but I have no idea what a WORD would be. Specifically, I'm determining the types from the BITMAPINFOHEADER structure.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Excell Type Data Entry Screen Using Visual Basic 6
hi all
i need a controll by using that i may able to make data entry
screen like excell entry .in wchich i can handel col level dataentry

Visual Basic 6 To Visual Basic 5 Conversion
What has to be done to the files in a VB6 project to get it to run on VB5CCE?

How To Access Visual FoxPro Data In Visual Basic
I have a problem :(

I would like do delete a record in FoxPro data base with Visual Basic 6

I use ODBC kuhinja:

Const povezava = "Provider=MSDASQL.1; Persist Security Info=False; Data Source=kuhinja"

adott1.ConnectionString = povezava
adott2.ConnectionString = povezava

adott2.RecordSource = "SELECT sifra,grupa,naziv,nabavna,vpc " _
& "FROM izdelki "
adott2.Refresh

to view data in datagrid

I delete a record :

adott1.RecordSource = "SELECT * " _
& " FROM izdelki " _
& " WHERE sifra='" & adott2.Recordset!sifra & "'"
adott1.Refresh

Record is marked in FoxPro as deleted ( not yet PACK ) but in Visual Basic datagrid (adott2.refersh ) record is still in it.

How can i execute PACK in Visual Basic????

THX

sorry for bad english :)

Visual Basic 3 Conversion
i found a program i wrote like 7 years ago in visual basic 3 but i dont have all the supporting files to let it run. ive decompiled it but i need to convert the main form from binary to ascii to look at the code. is there a simple way to do that? vb 6 and vb.net wont load the binary verison. thanks a lot

HTML 2 PDF Conversion From Visual Basic
Hi to all.. Does anyone know if there's a method to convert HTML to PDF files using visual basic?

any help will be appreciated

thanks!!
simons

Java To Visual Basic Conversion
How do I convert the following Java expressions into Visual Basic equivalents?

Code:
Java Example

% Modulus 17 % 5 = 2
<< Left Shift 7 << 1 = 14
>> Right Shift 7 >> 2 = 1
>>> Zero Fill Right Shift 7 >>> 1 = 3
^ Bitwise XOR 5 ^ 6 = 3
| Bitwise OR 5 | 6 = 7
& Bitwise And 5 & 6 = 3

MAI OpenBASIC To Visual Basic Conversion.
I am looking for any tools/guidance/assistance the group can provide mein a project to convert legacy applications written in MAI's OpenBASICto Visual Basic.

Thanks in advance for your assistance.

Paul Sloboda

Visual Basic Data Output With Visual Data Manager
Hi:

I have Visual Studio 6.0 and am using VB6 to make a program. This program takes input through the Visual Data Manager as Records, one by one. Then I want it to display these records one by one on forms, on labels, so that a user can go through them as displays one after another, as soon as the Visual Data Manager is closed.

It uses the Visual Data Manager to collect data, but what I need to do is then output as a label display to a new form or existing form, as a label.

I have tried things like

Unload Me
Form1.Show
RecordSet1 = Label1.Text

or

TxtFields() = = Label1.Text
TxtFields(1) = = Label2.Text

TxtFields() = = Form1.Label1.Text
TxtFields(1) = = Form2.Label2.Text

and the like, but it does not work. I have searched the Internet for answers.


What I do not want is to use say MS Access and SQL as the back and middle ends, because then the user would have to purchase additional software just to run this thing. I just want it to be self-contained and small. Say with maybe up to 100 records, probably much less. One record per set of two labels.

Also, a way to save this Recordset and retrieve it as TXT or RTF.

Any Ideas, All you programming gurus out there?

Thanks In Advance,

Bob

For An Assignment I Need To Create 4 Different Conversion Tables Using Visual Basic
The tutor has set me an assignment to create 4 different Conversion tables eg Currency / tempreture /lbs into kg's etc
these need to be set up to allow the user to punch in the for example currency he is currently got and by pressing a country for example be able to change that money into whatver country he has pressed eq £'s into francs by punching in a number and pressing france - this also needs to be able to convert back by pressing another button - I f you need any more info i will send you the Assignment - I would be most grateful for any help and if i was able to i would do the same
Many thanks

Visual Basic Transformation Script Date Conversion
I have a column that has a date format 10/14/03 and I need to change it to 14-OCT-2003 format. I have search but did not find anything that is remotely close to what I need.
I am using a DTS to get the date from a table as a 'char' and need to change it to dd-mon-yyyy format which is a exported to a csv file. Here is a sample attempt that the result is a blank space:

Function Main()
    If TRIM(DTSSource("Date")) = "10/14/03" Then
    DTSDestination("Date") = "14-OCT-2003"
    ElseIf TRIM(DTSSource("Date")) = "08/04/03" Then
    DTSDestination("Date") = "04-AUG-2003"
    Else
    DTSDestination("Date") = DTSSource("Date")
    End if
    Main = DTSTransformStat_OK
End Function

What Type Of Language Is Visual Basic?
What type of language is a Visual Basic?

Is it compiled directly to machine code/assembly code like C or C??

Is it an interpreted language like Java?

Is it mapped to C language calls?

Thanks,

The Sunburned Surveyor

What Value Type Is Global In Visual Basic?
What value type is Global in Visual Basic?

If I have something defined like this:


Code:
Global ErrorStatus&


And I have know what data type this is. I have heard that the compiler sets the data type based on how it is used. Well, suppose I have this problem where I have to know what the default type it is because I am sending it to a C++ DLL. What type should I expect?

Visual Basic Project Type???
Can someone give me a clear understanding and concepts of the different type of Visual Basic Projects. If there are site that give examples of each type, please post.

Currently, I know how to use Standard Project ActiveX Control VB Application Wizard AddIn
I like to know the concepts behind these project types. ActiveX EXE ActiveX Dll ActiveX Document EXE ActiveX Document Dll Data Project DHTML Application IIS Application VB Enterprise Edition Control VB Professional Edition Control VB Application Wizard Manager
Thank you and greatly appreciated for any info.

What Value Type Is Global In Visual Basic?
What value type is Global in Visual Basic?

If I have something defined like this:


Code:

Global ErrorStatus&



And I have know what data type this is. I have heard that the compiler sets the data type based on how it is used. Well, suppose I have this problem where I have to know what the default type it is because I am sending it to a C++ DLL. What type should I expect?

What Value Type Is Global In Visual Basic?
What value type is Global in Visual Basic?

If I have something defined like this:


Code:

Global ErrorStatus&



And I have know what data type this is. I have heard that the compiler sets the data type based on how it is used. Well, suppose I have this problem where I have to know what the default type it is because I am sending it to a C++ DLL. What type should I expect?

What Value Type Is Global In Visual Basic?
What value type is Global in Visual Basic?

If I have something defined like this:


Code:
Global ErrorStatus&


And I have know what data type this is. I have heard that the compiler sets the data type based on how it is used. Well, suppose I have this problem where I have to know what the default type it is because I am sending it to a C++ DLL. What type should I expect?

How To Make Visual Basic Type A Message For U
Let's say I'm playing an online game and I am in the lobby right now with internet explorer and there is a chat. Let's also say that I wanted to say "eClipse is afk right now" every 5 minutes. How would I make visual basic type and press enter for me.

Variable Uses An Automation Type Not Used In Visual Basic
I have used excel component (excel9.olb) in my VB application and distributed to client machines.

In the application setup, I have registered the file excel9.olb where the component lies into the client machines.

Most of the machine which the application has installed have no problem. However, 1-2 machine has the error described above.

Can anyone give me some hints as what might have gone wrong?

Thanks.

How To Search In A Database Of Xml Type In Visual Basic.Net
Dim DsTelephone As New DataSet("Telephone")
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim Fn As String
        Fn = "C:VB.Net ProjectsXML Data Project10xmltele.xml"
        DsTelephone.Clear()
        DsTelephone.ReadXml(Fn)
        With DataGrid1
            .DataSource = DsTelephone
            .DataMember = "telephone"
        End With
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim Fp As String
        Fp = "C:VB.Net ProjectsXML Data Project10xmltele.xml"
        DsTelephone.WriteXml(Fp)
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim Fnp As String
        Fnp = "E:VB.Net ProjectsXML Data Project10xmltele.xml"
        DsTelephone.Clear()
        DsTelephone.ReadXml(Fnp)
        With DataGrid1
            .DataSource = DsTelephone
            .DataMember = "telephone"
        End With
    End Sub
As you see in the program above I wanted to make a program of an Xml type of Database. My question is that I can display the data using DataGrid and can Update the data in database but I can't plan a search engine to search through the database and find wanted data. Please help find a way for user to be able to search his data in database.

Declaring A Function Type On Visual Basic
Hi , ...
I'm really new to VB and I 'd like to learn how I can define a user type for a function
In C++ I do :
typedef bool CallBackSetTimer (long time);
But I ve no idea what can be done in Visual Basic
Thanks ..
PiErRe

Variable Uses An Automation Type Not Supported In Visual Basic
This error pops up:

"Variable uses an automation type not supported in Visual Basic"

When I invoke this method in a DLL on the client machine.


Code:
Public Function RetrieveStuff(ByVal StuffID As Long, rsStuff As ADODB.Recordset) As Long
This error does not occur on the development machine. But once compiled, and installed it will appear on one machine but not on another.

The Package and Development Wizard used to create the install includes the line:


Quote:




File5=@MDAC_TYP.EXE,$(AppPath),,,3/18/99 12:00:00 AM,6492488,21.1.3711.11






... in other words the MDAC is installed on both machines, yet it runs on one and not on the other.

Since this application will be widely distributed, I am concerned that I am missing something in the install which is required by the DLL when it executes the above method.

Any suggestions?

Error 458: Variable Uses A Type Not Supported In Visual Basic
Hi

I'am getting this error (error 458: Variable uses a type not supported in Visual Basic ) when i try to instantiate a object of type "Word.Application". Until recently my code work well, but now...
If i use late binding (Set objWordApp = CreateObject(WordWord.Application)) the error disappear, but i need to catch the Word events and with late binding is impossible.

Any experienced develloper with this error ?
Any idea ?

Variable Uses An Automation Type Not Supported In Visual Basic
Hi there,

I try to do the following on WinNT and Office 97: I want to open a powerpoint program like this:


VB Code:
Private Sub Form_Load()    Dim ppApp      As PowerPoint.Application    Dim prsPres    As PowerPoint.Presentation        Set ppApp = New PowerPoint.Application        ppApp.ActivateEnd Sub


But what I get is an error message:
"Variable uses an Automation type not supported in Visual Basic"

I have included the two libraries "Microsoft Office 10.0 Office Library" and "Microsoft Powerpoint 10.0 Object Library"

I would really be grateful for any help

Thx
Charly

Variable Uses An Automation Type Not Supported In Visual Basic
Hello everybody,
I am developing an activex component that will
display the computers, files and folders on the network. In the process, a call is made to a function which accepts a GUID as a parameter. However at compilation time, it gives an error "458: variable uses an automation type not supported in visual basic".
This error does not arise when the same code is put inside a
standard exe.

Thanking you in advance. Please reply asap.

regards,
AL.

How Can I Determine Database Type At Run Time In Visual Basic 6
Hi,

I'm writing a program, which is allowed to use different databases (e.g. MS Access, MS SQL, MySQL, etc.).

The database connection is through ODBC. Hence, I just need to change the connection string to access different databases.

However, there are some different SQL statement syntax among these database types. Hence, I have to write different SQL statements for different database types. I want to handle this issue by using conditional statements.

For example (pseudo code only):

Get database type
if database type = MS Access then
    statement A
elseif database type = MS SQL thne
    statement B
else
    statement C
end if

My problem is: How can I determine database type at run time in Visual Basic 6?

Thanks for help in advance.

Visual Basic Question In Java (Private Type?)
I need to do something in Java that I only know how to do in VB.

Visual Basic has a way to create 'custom variables' that you can use in the rest of your program. The syntax is (if i can remember; I haven't used VB in years):


Code:

private type customRect

top as boolean
bottom as boolean
left as boolean
right as boolean
x as int
y as int

end type


With this you can use it like:


Code:

Dim theRectangle as customRect

theRectangle.top = true


And you could put it into arrays and such.

I need to do this exact same type of thing in Java. Can anyone show me how to do it, or something similar?

Error 458. Variable Uses An Automation Type Not Supported In Visual Basic
Using the package and deployment wizard i have made one setup for ActiveX.exe (servers) and one another for the client(s) included ActiveX.dlls and a ActiveX.exe(the running application for the client/user). After the installation both server and client i take the following error:
Error 458. Variable uses an Automation type not supported in Visual Basic.
How can resolve this problem?
The problem is the compatibility? I use binary.
Should i install all the servers individually
or clear the registry again ,complile again the project with no compatibility and then recompiple it with binary compatibility.
It is metioned that both server and client machines run only windows 98 second edition and are properly configured using the dcomcnfg.exe
But on my development machine runs without any problem

Run-time Error '458': Variable Uses An Automation Type Not Supported In Visual Basic.
Hi,
I am getting "Run-time error '458': Variable uses an Automation type not supported in Visual Basic" when automate the word application in visual basic.

This trggers when the following line is excecuted. This works fine in devolopment environment. When I installed it in the clietns place I am getting this error.

Set mwordApp = CreateObject("word.application")

Can you help out what is because

Regards
BAsu

Run-time Error '458': Variable Uses An Automation Type Not Supported In Visual Basic.
We have the same application running on dozens of machines, but recently we had to install the client on a new system, and whenever a call to COM is encountered the following error is produced:

Run-time error '458': Variable uses an Automation type not supported in Visual Basic.

Now, the only difference that I have been able to determine between the new machine and the existing ones is that the new one has Internet Explorer 6, and all the old ones have have IE 5.5-2

Is there something VB/VB script related that is included in the IE 5.5-2 install? If so, how can I get the files I need since the 5.5-2 install is no longer supported through Microsoft?

Word And Visual Basic [ How Can I Get The Save As Window Through Visual Basic? ]
Hi, I made a small program in visual basic that with the use of

Dim oWord as new word.application
Dim oDoc as new word.document

fills a document with some data from the visual basic.
I want when those data are loaded in word the save or save as window to appear.
The command oDoc.saveAs saves the document without even asking for a filename.

What Can I do?

How Do I Run A Program I Made In Visual Basic On A Computer Without Visual Basic?
I created a program in Visual Basic and I was curious at what I needed to do to be able to install or use this program on a computer without Visual Basic. Any help would be great! Thanks in advance.

Extracting Visual Basic Source Code From Visual Basic EXE
hi everyone,

Well actually the problem in my case is that i had mad an EXE in VB6 around a week ago and had stored the EXE and th source code in two diferent folders. By mistake somebody ha deleted the source code folder. I wanted to make some changes i the EXE code and Now i have only the EXE folder to deal with.

Is there any method by which i can extract the Visual Basic cod from the VB EXE. Is there any application or software which ca help me in this? Do give me the hyperlink for downloading th EXE for the extraction if possible.

Please let me know at the earliest.

Thanks in advance.

Ankit

Code Change From Visual Basic.net - Visual Studio 2005
I am working on a tuturial that i have for Visual basic.net ( for now )

I am working with Visual Studio 2005.

I have been working on a code to change the text color by the name put into
the text box.

Visual Basic .Net code.
Label2.ForeColor = Color.FromName(TextBox1.Text)

i get the error
Name 'Color' is not declared.

I was wondering if someone can show me how things would be in Visual Studio.

thank you

Apply Windows Visual Themes From Visual Basic?
I am moderately new a visual basic - i know quit a bit - but not as much as some people - was just wondering - is it possible to make a visual basic program that applies a windows visual style - if so - how?

Microsoft Visual Studio 6/Visual Basic 6 Sp6 RELEASED!!!!
Microsoft released Service Pack 6 for Visual Studio 6, download the latest(and final) service pack if you have VS6/VB6 installed.

Official Page
Official Page of sp6

List of Fixes
See the fixes from sp4 and sp5

Direct Download
Click here to download it (About 62mb)



Download it, it has many fixes included!



As BrianS told me: VB6 SP6, its only 26mb and VB Runtimes sp6 its only 1.02mb


Enjoy the new service pack! It is the LAST!!!!!

Linking To DLL's Created In Visual Studio From Visual Basic
Can anyone give me some usefull tips or links on how to link to routines writen in C++ from Visual Basic

I am aware of the

Declare Function CloseHandle Lib "testdll.dll" (ByVal hObject As Long) As Long

type notation, but I am curious on what I have to do with my DLL to allow this notation to work.

Any suggestions or links would be a great help, thanks!!!

Visual Basic Development &amp; The Visual C++ Shared Objects
I having a really irritating problem. I'm developing an Add-in in Visual Basic... however, to do the development I'm doing, I require the "Visual C++ shared Objects" reference to be added to the project.

Here in lies the problem. I also need the VB command left [as in left string copy - ie. left("aaaaa", 2)] The only problem is that by adding the "Visual C++ shared Objects" reference, the LEFT command is overridden with the C++ version which returns a long (or something like that).

In the References window, I've already set "Visual C++ shared Objects" to the lowest possible priority... is there anyway to get around this arrangement?

Thanks in advance,
Bishop

Dumb Question About Visual Basic / Visual Studio...
From someone who has been programming as long as I have, this has got to be a dumb (DUH!!!) question.  But if I don't get it answered, I'm going to continue to run around in circles.  The problem stems from what appears to be a simple name change, and the fact that I only upgrade my software infrastructure here every few years, so I miss what's going on.

VB6 appears to be the last (terminating) version of Visual Basic.  There will be no VB7.  But, clearly, the language itself is not being terminated -- just called something else, or is being "assimilated" (resistance is futile) or absorbed into a larger platform, losing its identity as a stand-alone programming environment.

How does Visual Studio relate to Visual Basic?  Is the "next generation" version of Visual Basic now being called Visual Basic.NET?  Is VB.NET part of Visual Studio?  If I get Visual Studio, is VB.NET automatically part of that package?  Or is Visual Studio one thing, and VB.NET something else entirely, ordered as two separate things?  If I want to keep programming in VB (as a programming language/environment), do I now have to get Visual Studio instead?

Sorry to bother the more enlightened souls here with a DUH question -- but I gotta ask SOMEBODY...

Thanks.  You folks have been a GREAT help here.

I Want To Make An OCX By Visual Basic But Also Compatible With Visual C And Delphi If Can!
I created an OCX using Visual Basic 6.0 is there some way to make it work in another programming languages like Visual C or Delphi?

Need Coding For Making Data Report Using Data Environment In Visual Basic 6.0
I would like to know how to write the code to only print out data from a certain date. I know how to set the data environment and drag the field to the report design but do not know how to write the code to only print out a certain data. Please help

USE OF RUNNING TOTALS IN VISUAL BASIC DATA ENVIRONMENT/DATA REPORT
My question is this:

Is there a any way a RUNNING TOTAL CAN BE use in DATA ENVIRONMENT
and DATA REPORT ?


yOURS,
SAMUEL

Is Visual Basic Script As Ubset Of Visual Basic
Hello

Is visual basic script a subset of Visual Basic code?

Visual Basic Items Removed From Visual Basic.NET
A while ago (maybe up to a year) I had found a web page (probably a Microsoft MVP's home age) that had a list of about 100 things that were removed from Visual Basic in the transition to Visual Basic.NET. As it is, I would like to look at that again, but I can't seem to find it on my computer. Does anyone remember this page and/or have a copy of the link or the file that was on it. It has particular things like Debug.Print is no longer valid and MsgBox function is not supported. I've look on Microsoft's website and found a great deal of information about implementation difference, but I can't seem to locate this particular piece. If anyone could help I would appreciate it very much.

Thanks in Advnance

Nick August

Visual Basic Data Control
i am using the visual basic data control ( vb6 ) and i have the control binded to a access97 mdb file, and a couple of other textbox and check box controls binded to that data control, on the development machine it works fine since vb is installed on it, well i am now on the deployment phase so need to find out the exact dlls, ocx, etc my app usses. it was easy with ocxs and dlls etc since i know what ocx/dll files i have used but this vb data contol i cant find out the com dlls that it is using, the app is working fine except for only the form where i have used the data control, i get an err msg

Class not registered.
Looking for object with CLSID:{00000010-0000-0010-8000-00AA006D2EA4}

i guess i just need ti regsvr32 some dlls but which ones ?
any idea ?

Visual Basic Data Format?
I have a COM interface which is either expecting UTF-16 or UTF-8 data to be passed in. I always understood that under the hood, VB is UTF-16, but this does not seem to be the case because if I pass it directly to the COM interface, the Encoding is not correct.

Is there something you need to do to get it into UTF-16.

Additionally, anyone know how to get it into UTF-8 as an alternative?

Thanks.

Data Structures In Visual Basic
Where can I get information implementing graph data structures in visual basic

Visual Basic And Data Report
Hi ALL,

I am facing a problem while designing a data report. I am using ADO data Environment for getting the data from the Microsoft Access database. I want to include serial number for the report entries. Could any one suggest me how can i do it.

Like now entries are coming like this

rohit 21 India 200
Varun 22 India 200

I want the entries like

1. rohit 21 india 200
2. varun 21 india 200

How can i do it

I have an another question also
Appliction i am developing is a database application it contains entries upto several pages
i want that in a report sum of all the entries in a page comes last in a page an this sum carry forwrds to the next page also

suppose there are two entries in page 1
1. rohit 21 india 200
2. varun 21 india 200
sum = 400
this sum should be carry forwards in the top of the next page
like this
previous carry = 400
1. ro 21 india 300
2. va 21 india 500
sum = 1200
Thanks
Rohit

Visual Basic Data Reporting
I am making a DataReport my query is something like this some time output of the query can 4 fields or some it can be 5 fields . Now how to make data report in this case Can somebody pls help me. Or give some idea.

Copyright © 2005-08 www.BigResource.com, All rights reserved