|
And that error is??
I have no clue what's wrong, other than possibly you have multiple versions of your component registered, but only one file that is valid. You could have an old version of the component still registered with the same name, but different GUIDs. You might have to go through the registry and track down every key that mentions your component and delete them from the registry. If you don't know what your doing with this part, DO NOT EVEN ATTEMPT to do this. Just change the GUIDs your using and the names of the library and classes in your component.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am using VS 2003. I have different options to be given for each item in the data grid. One option is I can provide Boolean column which will give me check box in each optional column and validate those column. Now can any body suggest me is there any method to provide Radio button instead of Check box in the grid.
-Krishnaraj
|
|
|
|
|
http://www.codeproject.com/dotnet/PrintingFormReport.asp[^]
Now I can print the form but I still have some queston, plz help!!!
Q1 If I have more than one record, how to print multi record?
Q2 If the form is too big, how to scale it in A4 width?
Q3 how to print all the lines in datagrid?
Q4 the richtextbox can not be printed, how to fix it?
By the way , if there is other method to print it like this and solve my problem, I am willing to use. Thanks!!!
|
|
|
|
|
I have the following in vCpp:
int DVP1412_CreateSDKInstence(void **pp)
this is a method in a dll, DVP1412.dll that comes with Advantech capture card.
How would I delcare this in VB.NET? What does void **p represent?
thanks
|
|
|
|
|
Any programs that can read methods in a dll and create the declaraction for a language such as VB.NET?
|
|
|
|
|
www.pinvoke.net is a good reference for win32 calls. It may or may not list your capture card's dll, but you will get some pointers about **p (which I think is a pointer)
|
|
|
|
|
"int DVP1412_CreateSDKInstence(void **pp)"
it's a "pointer to a pointer"
Theoreticaly it should come out looking something along the lines of this:
<DllImport ("DVP1412.dll", SetLastError:=True)> _
Public Shared Function DVP1412_CreateSDKInstence(ByRef pp as IntPtr) as Integer
End Function
Dim pp as IntPtr = Intptr.Zero
Dim Ret as integer = DVP1412_CreateSDKInstence(pp)
Debug.writeline("DVP1412_CreateSDKInstence: " & Err.LastDllError())
But I don't have the SDK or anymore of the code,
progload
|
|
|
|
|
When i use Dataadapter to fill datatable, if the data amount is huge, the user has to wait for a long time, so maybe they want to cancel that operation, how to do that ?
SqldataAdapter.fill(mydataset.mydatatable)
how to stop this operation
I am Entry level person
|
|
|
|
|
You can't. Since this code is most probably executing on the UI thread, you'll notice it's a blocking call and won't return execution to the next line until this query finishes. If you can't execute any code on that thread, there's no way you can click on a button, let alone make this call stop.
The only way to "stop" this call is to run the query on a background thread, freeing the UI thread to do other things. To cancel this query, all you have to do is ignore the return from the query thread. Threading is by no means an entry-level thing to put together.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i used mydataAdapter.selectcommand.cancel to cancel that operation. it returns a error which is cancelbyuser sqlexeption
I am Entry level person
|
|
|
|
|
SqlCommand.Cancel[^] docs with an example.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Need help on how to clear the flexgrid format... using codes...
thanks
|
|
|
|
|
Has anyone used these functions within VB.NET? I've seen several C++ samples and one VB6 but could not convert any of them to VB.NET.
Any expert advise is appreciated.
|
|
|
|
|
meraydin,
See:
http://www.rallenhome.com/books/managingenterprisead/code.html[^]
Under chapter 12. Security
Extra_Retrieve_All_Kerb_Tkts.vbp.txt
Extra_Retrieve_All_Kerb_Tkts.vbw.txt
Extra_Retrieve_All_Kerb_Tkts_form.frm.txt
Extra_Retrieve_All_Kerb_Tkts_form.frx
Extra_Retrieve_All_Kerb_Tkts_Module.bas.txt
Most of this code can be converted to VB.net Easily
You can download the code in a link on the page in
a zip file.
If you need help with converting it, post the code
your having trouble with, or send me an email and
I will try to give you a hand. I don't have time to
convert it all for you.
Or if you have code in vb already, post where your
having trouble and I'll try to help you with it.
progload
|
|
|
|
|
Whats the best way or tool to prevent decompilation of vb6
|
|
|
|
|
VB6 compiles to native code with a statically linked library, called the VB6 Runtime.
You can't stop anyone from reverse engineering the code. It's not pretty nor easy, but it can be done.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
What about obfuscating software, does it make the process of reverse engineering any more difficult.
|
|
|
|
|
In VB6, there's nothing to obfuscate! It's native processor code, which you really can't modify to make things difficult. There's no metadata like there is in a .NET managed code application.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
I am trying to build a Satellite assembly for one of my sites and i can not seem to get past this snag... For some reason i can not get the Strings.de-DE.Resources to load from the satellite. I have steped through the code to make sure that the culture was set properly and all is well...
All i have in this soulution is a default page a class project AKA ( Satellite assembly ), and the two resource files... Can someone please point me in the right direction for what to look for so that i can get this working?
thanks alot
erik
** I have included a picture of the Development Enviroment
http://www.constructionsupercenter.com/Help.gif
|
|
|
|
|
Hi,
I have a program that creates two desktops and switches between them when user wants. The procedure is that when user wants to switch to the other desktop, my program runs an other instance of itself in the other desktop, switches to that desktop and terinates itself.
But my process does not terminate (even I used End in VB6).
The reason is that a process "dwwin.exe" runs as soon as I want to close my program. When I terminate the dwwin.exe in taskmanager, the previous instance of my application automatically terminates.
A search on internet showed that it is an error reporting tool for Dr.Watson but I couldn't find what should I do to prevent this file to run.
Thanks
|
|
|
|
|
Dr.Watson runs because your app crashed hard with something like an access violation. It's not a problem with Dr.Watson. Your app is what's causing it to start up and put together a crash dump.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ok, I checked my program step by step and line by line.
In theory nothing is wrong because my program first releases all resources it uses (up to now there is no problem) then closes all the forms (no problem) but as soon as I want to unload my main form frmMain so that the program finishes, instead of exiting, dwwin.exe process starts and my process remains running.
I don't get any sort of error or any thing and I can go around the problem by kiling the dwwin.exe with the new instance of my program (and hence resulting in the previous instance to terminate.
But I want to know why? I tries Unload frmMain and event End both of which resulted in dwwin.exe being started (I still don't know how my program should crash only at the final line?)
Thanks
|
|
|
|
|
Well, since your app is crashing on the last line of code, I'd say that your app is doing something, that on the surface, appears legal and executes, but destabilizes the VB6 Runtime. You can't do EVERYTHING using VB...
I would start by making a small test app that just creates a new Desktop, then kills it and quits and see what happens.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi all,
i am working on my final project for uni, PC based scope, just thinking about how windows plots and draws the the screen is very different to ya basic graph, for example 0,0 is in the top left-hand corner of the screen. That's not a problem, you just subtract the height from the plotted data. The biggest problems will come from the integer based xy coordinates, for example plotting sin(2*pi*f*t) will need to be scaled and rounded, resulting in trucation error. For now i need a way of plotting one pixel,when you use drawlines there is acually two which does not look pretty when plotting graphs, its look jaggered.
for example using this code...
myGraphics.DrawLine(myPen, 100, 100, 101, 100)
when this is drawn the line looks like its made of two pixels.
one way round this is this code...
Private Sub Form1_Paint(ByVal sender As Object, _<br />
ByVal e As System.Windows.Forms.PaintEventArgs) _<br />
Handles MyBase.Paint<br />
<br />
<br />
Me.PlotFunction(100, 100, Color.Red, Me)<br />
<br />
<br />
End Sub<br />
<br />
<br />
Private Function PlotFunction(ByVal x As Integer, ByVal y As Integer, ByVal colour As Color, ByVal hnd As Object)<br />
'return the current form as a drawing surface <br />
Dim myGraphics = Graphics.FromHwnd(hnd.Handle)<br />
'instantiate a new pen object using the color structure<br />
Dim myPen = New Pen(Color:=colour, Width:=1)<br />
Dim maskpen = New Pen(Color:=hnd.BackColor, Width:=1)<br />
'draw the line on the form using the pen object<br />
myGraphics.DrawLine(myPen, x, y, x + 1, y)<br />
'draw the mask the blank out second pixel<br />
myGraphics.DrawLine(maskpen, x + 1, y, x + 2, y)<br />
End Function
this works by blanking out the second pixel with the base colour of the form.
any ideas or easier way of doing this?
thanks
Andy
|
|
|
|
|
Create a single pixel bitmap in the color you need, then use Graphics.DrawImageUnscaled to draw that image at the coordinates you need.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|