|
Topic posted in the WebDev forum:
Topic
Please help...
___________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA]
|
|
|
|
|
Dario Solera wrote: Topic posted in the WebDev forum:
No, no, no, no, no, dont cross post, ever!
xacc-ide 0.0.99-preview5 now with C#, C, IL, XML, Nemerle, IronPython and Boo highlighting support!
|
|
|
|
|
Since I don't know if the problem is about web development or simple C#, I needed to cross post...
___________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA]
|
|
|
|
|
That was not a cross post, it was a reference.
It's quite ok to make a reference to another post. A cross post would spread the answers in two threads, while a reference keeps the answers in one single thread.
---
b { font-weight: normal; }
|
|
|
|
|
I want to get the header of a stream, which has been recieved into a array of byte.
Is there a safe method to get the header quickly?
Here is the header format:
length 4 bytes,
ID 4 bytes,
SN 12 bytes
Thanks!
|
|
|
|
|
If I understand correctly and you're trying to convert from a byte array to primitive integer types, you can use System.BitConverter:
<br />
byte[] data = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a };
<br />
int length = BitConverter.ToInt32(data, 0);<br />
<br />
int id = BitConverter.ToInt32(data, 4);<br />
<br />
|
|
|
|
|
You can use the ReadBytes(int) function from the BinaryReader -class
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
The BinaryReader could only read stream.
How to convert byte[] array to stream?
|
|
|
|
|
In .NET 2003 after creating a Office Project and compile, the Word is opened and a fraction later is closed...
If I clos teh VS and enter the doc created by the project the Word is opened and this error apears:
"The current .NET security policy does not permit testWordProject to run from the folder .\testWordProject_bin\. Do not change the security policy in your computer. The .Net security policy is controlled by your administartor or the developer who wrote the custom macros. .......bla bla..."
How can I solve this?
I have OffciePro 2003 and Office comps from installed from the VS DVD...
PLS HELP
"Tow things are infinite,
the Universe and human stupidity,
and I am not so sure about the former!"
Albert Einstein
|
|
|
|
|
hi, i made a vb6.0 dll and made a reference for it on a C# windows application and made a definitions for two classes of it, it worked wll on my pc but hen i try the code on another PC i got an error on the defition of theses 2 classes definition the error is:
An unhandled exception of type 'system.runtime.interopServices.COMexception' occured in OCR@WORK.EXE
Additional information: Exception from HRESULT:0x800A0030
so please anyone can help me on this problem ... i don't know why it worked on my PC in a right way but it failed while trying the code on another PC
Thanks alot
Hamody
|
|
|
|
|
If it's a COM DLL, did you register it using regsvr32?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
yeah there i tried many times to unregister it and then register it again but the error still appear ...
Thanks alot
Hamody
|
|
|
|
|
Did you create an install for the VB6 .DLL? It would appear that some dependencies are missing, like maybe the VB6 Runtime .DLL's, or some other .DLL that your .DLL is refering to.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
please may u tell me how to create an install for the VB6 .DLL
and what d u mean by VB6 Runtime .DLL's, from where i can get it
Thanks alot
Hamody
|
|
|
|
|
It's a Setup and Deployment project. Look in Start/Programs/Microsoft Visual something... whatever, I haven't used VB6 in years.
You can get the runtime here[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thanks .... i tried it and i checked the dependencies but i didnot see any any dependencies lost .... i gonna get crazy from this project .... have u any solution else ....
or would u like 2 send u the whole project to see the problem on the login page ... it s a small project
Thanks alot
Hamody
|
|
|
|
|
Well, try installing the runtime and see what you get.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi, i tried directly after u replied me but i did not get it logged in i tried it on my personal PC in home and it gave me the same error .... the size of the program is 2 MB so can i send it to u and u see the error on the run time please
Thanks alot
Hamody
|
|
|
|
|
hi .... thanks a lot for trying to help me ... i found the solution .... there was a missed dll reference needed for that dll .... thanks allllllllllllllllllll
Thanks alot
Hamody
|
|
|
|
|
I draw an image in the form_Paint event handler:
e.Graphics.DrawImageUnscaled(bmp,0,0/*panel1.Bounds*/);
But the image IS scaled! The size of bmp is 2048*1900, but the whole image was drawn in a small area of the form, the width was 800 more or less.
Why scaled? How can I make it unscaled?
|
|
|
|
|
There's a problem with DPI.
Let use DrawImage(bmp, bmp.Width, bmp.Height): it's simper.
___________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA]
|
|
|
|
|
Hi!!
I am using a datagrid to display my customer details, lik ethe first coloumn is the ID, then the next coloumn is the name, and the third coloumn only contains text that says Update. This column is a asp:ButtonColumn. If the user clicks on this link, it must take the user to the updateCustomer.aspx page and load all the customer details. I know that I can have a method for clicking on the link, but is a querystring the only way of going to the updateAgency.aspx page from the link with maybe the agency ID as a parameter? I would've liked to have the link work as a submit button and have no parameters passed like in the querystring, and maybe have it retrieved like Request.Form("ID"), etc. But how is this possbly, how will it know which ID to take as there are other customers listed as well.
Is there a way of clearing a datagrid?
Regards.
|
|
|
|
|
|
hi i want to capture voice using win32 API in C#,but i am facing some problems,specially, how to pass PtrInt structure in waveInAddBuffer,waveOutOpen can anyone help me,i know how to load winmm.dll but can not capture voice. plz help me i will be very thankful to u,just give me a simple example.thanks
|
|
|
|
|
Hi,
I have placed a list View control & a Tree List View (Custom control obtained from this site for placing the tree & list view together) one below the other for a specific requirement in my application. Now I need to synchronize the Horizontal scroll for both these controls.
Any idea on how to do this is most welcome.
Thanks!
DEJ
|
|
|
|