|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconnetframeworkdesignguidelines.asp
Hungarian notation is not recommended in the the new guidelines. However, you cannot apply these guidleines consistently to VB .NET.
Though some are now suggesting that you can use what you like for private fields and locals. So for the Property problem in VB you can use
m_iCount or m_count, etc.
Kevin
|
|
|
|
|
Hi friends,
I'm trying to use oledb provider (MSDAORA) for personal oracle 7.3 and could not succeeded to the full length. giving errors at the time of adding new records
Can any one help me...
Thank you
Sudhakar
|
|
|
|
|
Hi
First and foremost, i need to thank you for spending your valuable time to read this document.
OK, let us not beat the bush. Let us get into some good action.
I have developed a new ActiveX control in VB. Let me take this time to eloborate the
functionality of that Control. If you are a S/w developer definetly you will be bored to do
the things again and again. Even i was also bored to repeat the same things and then finally i
got the idea to develope this control.
Many of us used to develope some small applications which interatcts with the Database and
manipulate the records. In all the cases we have to write the coding again and again to do the
basic functions. Say for example, If you want to save a record in a Database from a Form, then
you will have to write the codings to save and in the same way to retreive a record from the DB
again you will have to write some coding. The codes wont differ but the Form differs. So in all
Forms you will have to write the codes again and again.
To avoid this i have developed an ACTIVEX control which does all the works. You absolutely don't have
to write any code in your Form. You can get all your work done without writting even a single line
of code.
The control is now ready. But the problem is, I dont have anyone who can give either good or bad
comments about this control. I even dont know wether this is a revolutionary idea or an usual thing.
To get me out from all these questions, i really need some help from others. Unfortunately i dont
have much friends to help and so i treat the peoples whoever reads this as my friend. If you have
the tendency to help this friend please mail me to get the control and pass the comments to me.
It may be either good or bad. Any type of comments are welcome.
Please dont treat this document as a headache. If you think so, you have all the rights to
move this to trash. But dont forget Trash Bin is the first place where we will have to look for
some new ideas.
If you are intersted to know about this control and want a copy of this control, please mail to
vijooo@rediffmail.com
"Your work is a self portrait of urself. Autograph ur work with excellence"
Vijooo
|
|
|
|
|
i´m trying to build an ftp server with the winsock control and one of the options should be an ident lookup on connect. It seems that my connect to port 113 to the client on connect is fine, but now i have no clue how to get the response or at least how to react on a response of the client, would the same procedure like "finger" work ?
Any ideas , snippets, help ?
|
|
|
|
|
Hi all,
I am trying to use a vb dll from a VC++ app in which I want to show a form. All goes well except where I create and show the form. This is what I am doing from the class module:
Public Sub Class_Initialize()
Dim myForm As New Form1
Load myForm
myForm.Show
End Sub
With the Show part commented out, CreateDispatch(VBDLLNAME,&oleException) returns Operation returned Successfully or something like that in the exception variable, but when The Show line is uncommented and the program is run exception is thrown 'class not registered'.
I just started with VB yesterday and need to do this to support some legacy VB code. Please Help!
Cheers,
Zeeshan Razzaque.
|
|
|
|
|
Hello I had created an Activex component
I try to create it dynamically with :
Set MyTotoObject = CreateObject("TotoViewOCX.TotoView")
In this cas I can only acces the function of my object I can not access
the extender functions.
So I can not displaying it.
I try another method:
Set MyTotoObject = MMI.Controls.Add("TotoViewOCX.TotoView", "MyToto")
With this mode I can only acces the extender methods, And I can displaying it.
but I need to use the function I have created.
Is it possible to create the object and displaying it with the possibility
to Use the functionnality i add inside
Thanks a lot Michael
|
|
|
|
|
Do you have to use late binding? Can you just add it to the Components list of your project?
--
David Wengier
TAC ad gone wrong: "Don't fool yourself, you're a bloody idiot."
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
hi,
I need to work without adding the component to the project.
And i'm not able to display it
|
|
|
|
|
Michael.Weiss wrote:
I need to work without adding the component to the project.
In that case, you should be able to do the following:
Set MyTotoObject = MMI.Controls.Add("TotoViewOCX.TotoView", "MyToto")
MyTotoObject.Object.YourFunction()
Where "YourFunction" is whatever you want to do.
--
David Wengier
TAC ad gone wrong: "Don't fool yourself, you're a bloody idiot."
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!¨
it's working
|
|
|
|
|
Hi,
How can I create this acitevx component to access from jscript?
|
|
|
|
|
Please, how could i make 16-Bit colors 32-bit?
|
|
|
|
|
Are you talking about an image that you want to display, or the display mode of your video monitor?
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
hi everyone..
does anyone know if there is a way of getting input from DOS shell. I am running an executable (DOS based program) which prints stuff on the screen. is there a way of catching this from a VB program while the executable is running? please do let me know..
thanks
Mohith
be the change that you want to see in the world
|
|
|
|
|
The easiest way I know of is to have the standard output (STDOUT) redirected to a text file. You could use some console functions or the ReadFile() API, but that involves more work on your part. Anway, to be able to have the output in VB use the ShellExecute() API.
Private Const SW_HIDE = 0
Private Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" (ByVal hwnd As Long, _
ByVal lpOperation As String, ByVal lpFile As String, _
ByVal lpParameters As String, ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
Then, call your exe make sure to redirect the output in the parameter parameter.
ShellExecute Me.hwnd, "open", "my.exe", "> output.txt", "C:\", SW_HIDE
The program's output will be in output.txt, which will reside in the same dir as the exe you called.
Good luck,
Jeremy L. Falcon
"The One Who Said, 'The One Who Said...'"
|
|
|
|
|
how does this work? does it write to output.txt in c:\ directory? its not creating the file. its not in the same directory as exe as well.
i want to read the output on screen into my VB program. can i do that? i am using VB 6.
so i run an executable file from my VB application. that eecutable basically dumps some stuff on to the screen and i want to catch these dumps and show them in my VB application while the executable is running. i dont want to redirect the whole output to a file and then read it in once executable is finished running. can i do this?
please let me know. i would really appreciate your help.
kindest regards
Mohith
be the change that you want to see in the world
|
|
|
|
|
This does work. How are you attempting to implement this? Remember the function and constant are declared with private scope. Change it to public if you put it in a module. Also, I'm assuming you changed my.exe to a filename that exists in your C:\ directory??
Jeremy L. Falcon
"The One Who Said, 'The One Who Said...'"
Homepage: imputek.com
|
|
|
|
|
this is the code in my form
ShellExecute Me.hwnd, "open", "hiplex.exe", "> output.txt", "C:\", SW_HIDE
and i have made everything public in module which is
Public Const SW_HIDE = 0
Public Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" (ByVal hwnd As Long, _
ByVal lpOperation As String, ByVal lpFile As String, _
ByVal lpParameters As String, ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
still creates no output.txt in c:\. do i need to include anything else?
once it creates, how would i read in the stuff from file (output.txt) to lets say a text box within my VB application while the executable is still running?
regards
Mohith
be the change that you want to see in the world
|
|
|
|
|
We'll I'll be! I did run an exe (before I posted) and redirected the output to a file just to make sure and it worked, but I tested it in VB and sure enough it didn't happen.
It *does* work, but the catch is you have to have the console open, and it must stay open. If I run a console program outside of an open shell (command) window it closes before STDOUT has time to be written to.
So, I tried several things. This involved me actually piping a char stream to my app directly (skipping output.txt). That worked, but it still didn't allow me to make sure the Window was hidden.
So, I got the idea to use a batch file. Lo and behold it did the job. No window and output.txt was there. This is because (I assume) of the way a batch file is handled -- it was an execution on top of an execution. The only thing left to do was make sure the program waited long enough to let the text file be created. So, I checked to make sure the process terminates.
Posting the code in this message isn't sensible because I also created a simple C console application that prints to STDOUT and an example batch file to run it. So, I ZIPped up the project and posted it for download on my (soon to be) website. Just scan for viruses as a precaution. I'm paranoid about this ever since I got CIH (back in the day).
Oh, and don't forget to put myprog.exe and myprog.bat in your C:\ directory.
File: http://dev.imputek.com/StdOut.zip
Jeremy L. Falcon
"The One Who Said, 'The One Who Said...'"
Homepage: imputek.com
|
|
|
|
|
hi Jeremy
thanks for this but this reads in from the file once the application (exe) is finished. i want to catch the stuff while the application is still running. is this possible? while the exe is running and sending stuff to screen, i want to catch the output written on screen and print it in the text box.
please let me know if this is possible.
kind regards
Mohith
be the change that you want to see in the world
|
|
|
|
|
It's possible, but it won't be easy. This will involve you controlling the process and the process' console manually -- which takes some work.
If you have MSDN installed, check out...
mk:@MSITStore:C:\Program%20Files\Microsoft%20Visual%20Studio\MSDN\2001JAN\1033\fileio.chm::/hh/winbase/conchar_4p6c.htm
And look into "Using the Console" and "Console Reference". If you don't have MSDN installed, then you can look at MSDN Online.
Jeremy L. Falcon
"The One Who Said, 'The One Who Said...'"
Homepage: imputek.com
|
|
|
|
|
Hi !
I'm building an App using Visual Basic 6, where I would like to display many ActiveX controls.
The number and types of ActiveX to display is not hard-coded in the App, but rather put in a text file that would be read during initialization of the App, thus allowing me to add/remove ActiveX controls without recompiling my App.
My problem is I don't know how to use an ActiveX control in VB without registering it (Project->Component) and putting it into a form. I would like to register it during code execution and placing it into my form dynamically.
Anyone knows how to do that ?
Thank you for your help !
Jerome
|
|
|
|
|
To simply put it, it's a whole heck of a lot easier to reference all the ActiveX controls (Project/Components...) you'll need and create them as needed. Also, if you use the package and desployment wizard it'll make sure the OCXs are included in your installation.
I am not sure what it is exactly you are looking to do, but if you do reference the controls, you can use a control array along with the Load statement to create new indices at runtime.
You don't have to use a control array. Reference the rich edit control in your project, Uncheck "Remove information about unused ActiveX Controls" from Project Properties/Make. And run the following code...
Dim MyControl As Control
Private Sub Form_Load()
Set MyControl = Me.Controls.Add("RICHTEXT.RichTextCtrl.1", _
"RichText1", Me)
MyControl.Text = "I'm Dynamic!"
MyControl.Font.Bold = True
MyControl.Font.Italic = True
MyControl.Visible = True
End Sub
Private Sub Form_Resize()
If IsObject(MyControl) Then _
MyControl.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight
End Sub
Private Sub Form_Unload(Cancel As Integer)
If IsObject(MyControl) Then Set MyControl = Nothing
End Sub
However, in doing this you'll need to know the ProgID for the ActiveX control. I generally, place the control on the form, save it, use the .frm file to get the class name, run it, and get an error message giving me the ProgID. You can also get it from the registry, but I'm lazy.
If you don't register the control in the project you may have to deal with licensing info in your code. Most MS ActiveX controls require a license to be used. You could create one manually, but this becomes more of a pain than it's worth.
Good luck...
Jeremy L. Falcon
"The One Who Said, 'The One Who Said...'"
|
|
|
|
|
I'm new to Visual Basic. Is there any way that I could give a visual basic 6 application the look/feel of a java swing app ?
|
|
|
|
|
i want to send a picture on the plotter of A0 size through my visual basic programe.reply me soon plz plz plz plz.
talha amin
|
|
|
|