|
no C, stuck with VB6, have to code my own bitstream functions by the looks. damnation.
|
|
|
|
|
Why Cannot you use C the way I suggested (i.e. to make a DLL and then call it from the 'damned' VB6 app)?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
That's a really good suggestion. I don't have either of a compiler nor C skills. If I did then I'd jump at your suggestion. If you have some hints (links or something) on how to go about acquiring a free compiler, using it to create a DLL callable from VB6, and a place to learn C then I'm happy to give it a go.
Bitstream isn't rocket science, it's just very tedious in VB doing that with a byte array where the byte array goes from [0..n] and each bit goes (MSB->LSB) [7..0] but the bitstream bits come off in reverse from within the bytes eg bit7 1st as bitstream bit #1 then bit6 2nd as bitstream bit #2 etc... Now if VB had unsigned Longs and come good equivalence statement like the old fortran77 (showing my age, that's where I did most of my work) then it's be a little easier for me.
The challenge is to yield requested bits from the bitstream (up to 32 at a time) in a VB Long integer as a proper usable integer - a fair bit of byte masking and shifting in that. (eg request an arbitrary 30 bits starting anywhere in the bitstream to yield them in a VB long justified to become the integer value of those 30 bits).
Suggested code in any language welcomed I'm not sure about copying Java code though, because that's a big-endian Longs system and I don't know the effect of that (if any).
|
|
|
|
|
There's Microsoft Visual C++ Express Edition [^], a free IDE for C/C++ developement!
Its wizard may create a skeleton DLL project for you.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Strike me pink, that's good news ! I hope it doesn't require NET runtime for the resulting .DLL/.exe though ?
|
|
|
|
|
halsboss wrote: I hope it doesn't require NET runtime for the resulting .DLL/.exe though ?
It doesn't: you may write 100% native code with it (you may also write managed C++ , i.e. .NET code, if you like to, with it).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thankyou very much. Off to download and install it and see if I can generate a dll callable from VB6. I'll have to do some reading 'cause I don't know anything about objects let alone how to poke them into life from a C++ DLL from VB6 ... big learning curve
Oh, and does this microsoft link [^] mean that I just can't give the .exe and .DLL to someone ? ie I HAVE to install the runtime ? Kinda defeats the purpose since the VB6 runtime comes with XP an up or so I read. I might be better off hacking up very slow VB6 functions to manipulate bits, if it does need a C++ runtime installed.
|
|
|
|
|
hi
i am new developer in vvb.net.
wen ever i press f1 to f12 keys some window ill show????
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
Google the keypress event... I found this when I did:
MSDN function you use[^]
There are plenty of code examples out there!
|
|
|
|
|
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.KeyCode = Keys.F1 Then
Form2.Show()
ElseIf e.KeyCode = Keys.F2 Then
Form3.Show()
End If
End Sub
Is that you have asked.
|
|
|
|
|
thank u....
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
hi...
i got answer.. but i hve morethen 20 textbox in form..
so what ever its i press f1 key its open new form...
In ur keypress event perform well. any alternative solution
for form event not a textbox key press event...
thanks
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
Hi All,
Hope someone can help on this one.
We have a small app that was developed in VS2008 using VB. App links to a small database using Access 2007 and for clients who do not have Access installed then we provide the Access Database Engine redistributable for them to install and use. App works fine and does all we want with one exception. In some, not all, cases the dates that are saved are stored in mm/dd/yy format (American) rather than the normal (Australian) dd/mm/yy for us. We originally thought this was due to local regional settings on the machine but it is not as we have the situation regardless of what region is selected. Then thought that the Access Database Engine was not region aware but we have clients using the app plus the database engine and the dates are saved in both formats dependent on the client but we can find no link - I know there must be one somewhere!
The field definitions in the database for the relevant fields are set to short date format. We have tried to force the code to save dates in a predetermined format (dd/mm/yy) but this does not work either. Any date after the 12th of the month is saved correctly so I know it must be down to region awareness or similar. Has anyone any suggestions as to what causes the problem and what can be done to resolve it.
Thanks in advance
Rick
|
|
|
|
|
This is a common issue with Access - has been for years...
Trick is to use this date format when writing your SQL to store the dates:
yyyy-mm-dd
Access doesn't actually store dates in a specified "date" format - it simply converts them and displays them however your code requests it to when you get it back out again.
Sadly, there's no easy way to fix your date issue (in your data) - as you have correctly identified that some dates are correct, and some aren't.
Hope this helps.
|
|
|
|
|
Damian,
Thanks for the reply, I have been aware of the issue with Access and dates for some time as well and this is why we force the code to hold dates in the ISO format (yyyy/MM/dd). We do not have date formats mixed up within the same database. It is from database to database or user to user if you like so do not have to fix data as such. I am trying to identify why we have a problem only on some machines but think we may have to ignore trying to identify the problem and merely work around it by controlling how dates are displayed in the app - but thanks for the answer.
Rick
|
|
|
|
|
how do i count the rows from table in vb.net?
tell me the code..
|
|
|
|
|
Hi, try this
if you have datatable with data from your database
if datatable.rows.count > 0 then
dim couns as integert = datatable.rows.count
endif
or
in your query: select count(*) from your tablename.
Hope this one can help.
Thanks
Hi, Please select Good Question if my answer are fit to your Question.
|
|
|
|
|
I just wonder if there is any universal way to make a child form accepting values from parent form and parent form accepting values from child form. I am using visual studio 2008.
|
|
|
|
|
Use delegates to send a message from child to parent, just access methods and properties of the child from the parent.
|
|
|
|
|
thanks for your answer.
Could you please give me an example?
|
|
|
|
|
Google broken where you live ? There's an article on CP on communication between forms, I suggest you look that up, it will go into more detail than I will go into for a forum reply.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I need some code that will search UNC paths and return a confirmation message if a specified file is found, kinda like this
if \\machinename\path\file.ext found then popup "here it is"
Is this possible?
the simpler the code is, the better
|
|
|
|
|
|
|
I can only suggest that you read up on the .NET DragDrop process. If you like MSDN documentation, start here[^].
BTW if you are going to post code samples, please use the <pre></pre> tags and paste your code between them. This preserves a lot of the formatting and makes your code a lot easier to read.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|