|
Hi
I have two set up installaation file and i want to merge both of them and make one set up file how can i merge both the .msi file
pls tell me complete procedure
everyone must have seen that while installating the dotnet cd its first seraches the windows up date product i.e service pack ,internet exploreer i also want to make first screen and give the user option for installing after the sleection of all the option which must be installled intiallay
pls tell me the c omlete path
Thanks & Regards
sanjeev
|
|
|
|
|
I'm subclassing the ColumnHeader (named MyColumnHeader for instance)
class and I want when I click the "Add" button in the Columns designer
window a MyColumnHeader object to be added to the collection, and not
a ColumnHeader object. I.e. I want to go round the writing of a custom
collection for MyColumnHeader items, 'cause it's too complicated.
Is this possible?
Thanks.
|
|
|
|
|
Hi,
I want to write a function that accepts a byte[]. The byte[] may be fairly large and won't be modified by the function.
What's the best declaration for this? Just declaring it as a normal byte[]? Or passing a "ref byte[]"? Const doesn't seem to work... readonly attribute?
One more question: when I pass a byte[], is this automatically modifyable? I.e. do changes in the function to the array affect the outer function, too? Must I mark it using ref in order to do so? (for normal variables I of course must, but byte[]?)
Thanks in advance and best regards
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Hi
If you wanna your function don't change the value of array cells don't use 'ref' keyword ! This cause the parameter will pass by Reference !
I hope this was your answer
Always there is another way !
|
|
|
|
|
|
Passing it as a byte[] will pass the array by reference, as System.Array is a reference type. Because the array is passed by reference, the called function can modify the values in the array and the calling function will see the modified values. That is, if the called function looks like
void Test(byte[] byteArray)
{
byteArray[0] = 23;
}
then the calling function will get 23 when it indexes byteArray[0].
There is no way you can avoid this, the only workaround is to pass a copy of the data in the array.
However, the called function cannot change the array reference itsef. That is, if it does
void Test(byte[] byteArray)
{
byteArray = new byte[2];
}
then the calling code will *not* see the modified reference. If you want the calling code to see the modified reference, you need to add the ref keyword.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Ok.Sorry I misunderstand your question !
I think there is no way to pass reference types to functions like primitives in .NET ! .Net manipulate all reference types on the heap.If you can put the objects on the stack (Like Primitives) you must define your type by STRUCT !
.NET treat to structs like primitive types. Structs are same as classes,Except in a little differences in constructors !
I hope this was helpful for you.If you find another way,Please mail me !
Best Regards,
Always there is another way !
|
|
|
|
|
Maybe you wanted to address the original poster?
There are quite a few differences between structs and classes by the way, you can read more about it here[^].
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
What will "ref byte[]" pass then? The same as "byte[]" or some weird double pointer?
Read your reply again Clear now
Thanks!
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
I really feel like a dumbass, but how do you create the .exe file that you would then distribute after coding. I have only coded C# in the web before so... Thanks
|
|
|
|
|
Hi...
If you use VS.NET IDE it produces the .EXE file for you automatically. But if you want build your application in command prompt you must use the following command :
CSC /Target:[winexe | Library | exe] /out<filename> /Reference:<dll file="" list="">
[/Res:<resinfo>]
That :
<filename> Example : bin\MyApp.Exe
<dll file="" list=""> : System.dll,System.Windows.Forms.dll,...
Note : You can't create an standart(Intel) executable for .Net applications to run without .NET Framework !
Good Luck !
Always there is another way !
|
|
|
|
|
Can you guide me through the VS.Net IDE?
|
|
|
|
|
Fire up VS.Net and then File->New->Project->Windows Application or File->New->Project->Console Application depending on whether you want a .exe with a gui
"I think I speak on behalf of everyone here when I say huh?" - Buffy
|
|
|
|
|
Hi mathew can i have your email? i must wrtite to you a personal email.
thanks
|
|
|
|
|
Hi,
i am trying to add a com component in C# but the component is not been able to add, i.e. when i try to add, following error is displayed
"Add reference: error adding reference to project"
for additional info, i have a sample sdk that is using the component it is actually developed under VC 6.0 and is using .idl files
is it possible to use this component in C# if possible how,
i am also trying to add the same component in VC(managed)windows component but the problem is still the same
Will some body please me, i will be very thankfull.
Arus.
|
|
|
|
|
If the com component has a type library, you can use tlbimp to create an interop assembly for the com component, then add a reference to the interop assy to your project.
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not.
Eric Hoffer
|
|
|
|
|
Hello,
Can any one tell me if there is any way to open a dial up internet connection from my .NET aplication? What i need is that my program open the internet connection (MODEM) send an e-mail and then close the internet connection (Hang off the modem).
Excuse my english please
|
|
|
|
|
Hi
You must use RAS API functions to do this job.Serach for 'RAS Client' In codeproject articles.You will find it !
Good Luck
Always there is another way !
|
|
|
|
|
Hi,
Pls check the given link
complete code is there
if you have any problem pls tell
me
http://www.dotnetspider.com/technology/kb/Article1438.aspx
hope this will help you
Thanks & regards
sanjeev
|
|
|
|
|
How do I send e-mail in a .exe file?
Why doesn't "using System.Web.Mail;" work?
|
|
|
|
|
did you add a project reference to System.Web.Dll (so it could find the implementation of the namespace you wish to use) ?
What do you mean it "doesn't work"? How on earth could you expect someone to help you with such scant information about your problem? A snippet of the failing code, along with the error messages you are seeing is the bare minimum you should provide if you really expect help with this.
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not.
Eric Hoffer
|
|
|
|
|
Sorry about the lack of information. I figured it out. I forgot the add it as a reference.
|
|
|
|
|
Did you seen EasyMail in www.quicksoftcrop.com ? It has a free component to send SMTP email to mail servers. If this is OK,See the www.QkSoft.com to download a virtual SMTP server and test your application with this server.
If you want send email to Yahoo mail server you can use mx1.yahoo.com as your free SMTP server otherwise you can't relay your mails by this server !!
Mail me, if you have more questions !
King Regards,
Always there is another way !
|
|
|
|
|
How do I use StreamReader to read a file on the client side?
Do I use StreamReader?
|
|
|
|
|
Please keep your question in a single thread.
---
b { font-weight: normal; }
|
|
|
|