|
Just give you an idea about an application that convert from Access project to VB6 application. I think there is should be an update version that could convert from Access application to VB.Net too. Try to use google and search for it. The application that I used is convert the form from access to vb6, you can use the other control like you use it in access too.
Roath Kanel
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Evert time I close my app down it comes up with a messagebox saying:
.NET-BroadcastEventWindow.1.0.5000.0.3: App.exe Application Error
The inistruction at "xxxx" referenced memory at "xxxx". The memory could not be "written".
Why is this happening? It doesn't happen if I run it in the IDE. All I did was add a chart compenent to the main form - it only occurs if I click on the chart - I don't actually have to do anything with the chart, I don't even populate it (it also happens if I do populate it)
Rugby League: The Greatest Game Of All.
|
|
|
|
|
Just looked this up on Microsoft.com - they don't appear to have heard of it although they must have written it. There are quite a few posts about it if you do a google search, nobody knows what it is and nobody has a solution. Oh well, my users will just have to do without charting.
Rugby League: The Greatest Game Of All.
|
|
|
|
|
The problem can be cause by how you USE the chart component. This includes just instantiating it and not disposing of it properly before your app shuts down. THis is why you can't find an answer on any sites. Depending on the chart control, the answer to how to dispose of it will be different.
What is probably happening is the chart control you are using, a COM component do doubt, is firing off an event that you subscribed to, but since your app is already being GC'd, the call to your event code is going to where the event handler WAS in memory, which is no longer valid.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Cheers, the chart component is supposed to be 100% .NET - its Xceed Chart - I haven't subscribed to any events on it, I just dropped it onto my form and that seems enough to kill it. It's a shame because it looks a decent chart control (there's a lot of rubbish out there)
How can I dispose of it properly?
Rugby League: The Greatest Game Of All.
|
|
|
|
|
You don't need to subscribe to an event. I just read up on the control's documentation. It's almost 100% C#. The remainder is UNMANAGED OpenGL code. You'll have to dispose of the component yourself. Something like this:
ChartGridControl1.Dispose()
ChartGridControl1 = Nothing
If that doesn't work, consult with the Xceed and see if they have a fix for it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Cheers Dave, I tried that in the forms close event but it still happens. I have sent off an email to Xceed, they are usually pretty good at answering queries. I wish these things didn't happen on a weekend.
Rugby League: The Greatest Game Of All.
|
|
|
|
|
Hi,
I am Using VB6. I have to display UTF-8 characters in my TextBoxes, but It seems that VB6 does not support UTF-8.
How Can I change the 'Encoding' of the TextBoxes into UTF-8?
Please, Help Me!!
Thanks.
|
|
|
|
|
The textboxes cannot be converted to UTF-8 because that refers to the encoding of the string, not the object. VB6 will only use ASCII and Unicode strings, specifically, it uses BSTR as its native format.
What are you trying to accomplish?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
VB6 does not support Unicode, but you can use the third tool which can display unicode in textbox. Its Unitoolbox tool. If you need Unitoolbox, please contact me: hapelec2003@hn.vnn.vn
Good luck
tramdtt
|
|
|
|
|
The UI controls don't support Unicode. VB6 native format strings ARE Unicode, Chapter 6: Character Strings[^]. Kind of strange that the controls never supported it...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I said , VB6 does not support Unicode but there is the third tool which can display unicode in textbox, label, combobox, listbox.... Its Unitoolbox tool.
I have tried it and Its good!!!
tramdtt
|
|
|
|
|
Hi
I have dowloaded the Unitoolbox tool, but it didn't help me, because I want some Grid Controls that support UTF-8 aand also right-to-left property. I want to display farsi texts which only needs right-to-left and UTF-8 support!
Microsoft Froms 2.0 Library supports UTF-8 but it does not contain what I need (The Grid!)
Thanks alot
|
|
|
|
|
Has anyone used the book VB.net step-by-step?
|
|
|
|
|
You might want to ask a more specific question. Just asking if some has read a book will result in a Yes or No answer, if any...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi, I used to read Microsoft Visual Basic .Net 2003 Step by Step (Michael Halvorson, Published by Microsoft Press). It is a good book to read and start from the beginner. Another books is Visual Basic Programming (author by Harold Davis, published by Sybex). This one has a good written style, It also teach you step by step to learn VB.Net
Roath Kanel
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Hi
I wondered if there is anybody out there who could help me.
I'm new to VB.NET and I want to read through a MS Access Database Table and manipulate (Add, Edit, Delete) the table in code myself.
Please help
|
|
|
|
|
|
Hii..I need some help here guys.Thanks before 4 ur answer.
Q:How can I make bitwise rotation with any input value and any input rotation in VB6?
Now Waiting...............
|
|
|
|
|
To move the data X number of bits to the left, you would use:
Result = Value * ( 2 ^ X )
To move the data X number of the to the right, you would use:
Resutt = Value / ( 2 ^ X )
VB6 and VS.NET 2002 don't have native bit-shift operators. VB.NET 2003 does...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Unfortunately dave..I can't cheese yet.Code which u gave to me is to make bitwise shift, not for bitwise rotation.So..I'm back to you,how can it be done?Maybe,I give a simple example what I mean about bitwise rotation.
Ex:
value : 1110001111000111
rotate : 5 bits
result : 0111100011111100
But anyway thanks again, u want reply my question.It means to me..
|
|
|
|
|
After a little research and testing, there is also a problem I forgot about. In VB6, the shifting doesn't work in all cases because VB works only with signed numbers. If you use the techniques on &hFFFFFFFF (-1 decimal) and shfit the number ANY number of bits to the left, you'll get &hffffffff (-1 decimal).
To get true bits shift support, you'll need a C++ .DLL to take care of the bit shifting for you. This is because C++ can work on the numbers as unsigned, doing the shifting correctly, then sending them back to VB6. Even then, you won't be able to do reliable calculations with those numbers because the sign bit will not be valid. You may think you have a positive value after a bit shift operation when you don't.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Is it perfectly safe to keep adding and removing handlers using AddHandler and RemoveHandler?
Rugby League: The Greatest Game Of All.
|
|
|
|
|
Sure. Just make sure your not removing the handlers while they are still being used and remember to remove the handlers you don't need anymore.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am developing COm based office addin
and try to hook the event which listening
all the event happend in office Save
new ....
Anyone has clue?
Shin
|
|
|
|