|
Hei, thank you for your answer. I have finally coded like following (with MFC) :
// Adresse ip local du pc
CString CSipAddLocal = CTool::GetLocalIP();
CAsyncSocket *ClassMySocket = new CAsyncSocket;
//ClassMySocket->Create(atof(portUnicast));
ClassMySocket->Socket();
int i = 0;
while (ClassMySocket->Bind(atof(portUnicast),CSipAddLocal)==0)
{...try another port...}
..................................................................
I think this method is working well !
I wish you a nice week-end, bye !
alain costanza
There is no way to happiness, happiness is the way !
|
|
|
|
|
My datagrid has a big problem, it happens only in columns that are read only.
Please see the datagrid image.
The gost that I show it’s like a new readonly textbox.
If the selected cell it’s not readonly there’s no problem.
I think that the problem it’s ralated with lose of focus of the datagrid.
After pressing a button, I fill again the datagrid with new datasource but this thing remains, hiding the new value!
Only with scrool I can see that the new value it’s really there but the old is hiding it.
I tried datagrid Refresh() and so many things but nothing works.
Need help please.
Paulo Gonçalves
pfrg@mega.ist.utl.pt
|
|
|
|
|
Hi
I'm doing a bit of research with .NET's TCP IP classes - downloaded some samples from MSDN and off here.
However, whenever I run a client program that creates a TcpClient, I get the following popup message.
An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in system.dll
Additional information: No connection could be made because the target machine actively refused it
A bit frustrating as that stops everything from running.
I'm on XP and running service pack 2
Is there any way around this?
Cheers
|
|
|
|
|
That error message means that you were trying to connect to a server and the server didn't exists. You must first run the server (code that creates TcpListener and calls appropriate methods to accept TcpClients) before running the client.
In case you've already started the server and you're still getting the error, it might be because of SP2 Firewall settings..
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Seems to have done the trick
completely new to .NET so struggling along! Cheers for the help
|
|
|
|
|
plz help me if any body have solution of this problem .
I have a big problem with .NET.
Short Description:
As long as I have an empty From in my Windows Application everything
works fine, but as soon as I add any kind of Control (e.g. a Button) to
the Form I get the following Exception in the InitializeComponents
method
*
An unhandled exception of type 'System.ArithmeticException' occurred in
system.drawing.dll
Additional information: Overflow or underflow in the arithmetic
operation.*
I read on a discussion board that this is caused by something called FPU
Exceptions which could be enabled by a hardware part of my machine.
Is there a Way to find out which part? Or is there a Way to turn them
off except the one on the MS Site?
Please help me if any body have solution of this problem
|
|
|
|
|
hi,
I wanted to learn about the Biztalk serverl.Can any one help me in this issue.
1) Can anyone help me where I can download BizTalk Server2002
2) Where I can find the documentation that helps me to learn about it.
Thanking you in advance
Satish
|
|
|
|
|
satishrg wrote:
1) Can anyone help me where I can download BizTalk Server2002
You can get the Trial version of 2004 here[^]. The 2002 Trial is no longer available.
satishrg wrote:
2) Where I can find the documentation that helps me to learn about it.
Try the BizTalk Server Developer Center, here[^] on MSDN. There's tons of information.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi there people,
I was wondering what strategies you would use to create an evaluation version of your software. I've been asked to do this for a company I do sub-contracting work for. Currently I'm just writing a long (DateTime.Now().Ticks ) to an open part of the registry at installation time, and comparing to that at run time. But there's got to be a better way!
TIA, pk
|
|
|
|
|
I think that is pretty typical, unless your software also connects to a web service for some reason, in which case you would get the date from the web server. You can also add code that saves the current date each time the software is run, and if the current date is less than the last date checked, you don't allow the software to run because it means the person "rolled back the clock" to extend the eval period.
The other thing that is frequently done is to write a bogus entry to the registry - usually a GUID in some area like the CLSID node with no defualt value that identifies your software. This GUID is not uninstalled, so when the eval is uninstalled, then reinstalled after the eval period it checks for the GUID. If the GUID is already there, it displays a message that the trial period is over.
Although leaving spurious entries in the registry after software is uninstalled is considered poor form, that is still how a lot of trial versions work. And besides, a lot of uninstalls of legitimate software are far less than perfect and leave garbage in the registry because they did not uninstall cleanly anyway.
Robert
|
|
|
|
|
Hai...i am like to do a little project in Java...i have some knowledge in Java upto Java2v1.4....please provide any idea to me...
|
|
|
|
|
Are you that unimaginative? Are you also aware that this site is dedicated to developing applications on the Win32 and .NET Framework platforms and not Java?
How about any game you can think of. Maybe something to balance your checkbook. Scrape a web page maybe, and follow its links?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Does anyone know how to retrieve the machine's IP, on which the assembly is executing?
|
|
|
|
|
Does the following snippet help?
<br />
Dns.GetHostByName(System.Environment.MachineName).AddressList[0]<br />
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
A machine can have multiple IP addresses. They are not garanteed to be returned in any particular order, so your code must be able to handle this issue if needed.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
as the caption says,if anyone can help me ,kindly drop aline with some tips
-adnan
MyBlogs
http://weblogs.com.pk/kadnan
|
|
|
|
|
OK, there are at least two ways to do this. The "right" way and the "wrong" way. Or perhaps a better way to put it is the "long" way and the "wrong" way.
The "long" way is to use Orca or some other MSI package editor and manually add the shortcuts and other stuff to make it work. That is complicated, and I will assume that if you knew how to do it, you would have done it already.
So here is the "wrong" way. This is kind of a hack because the VS NET Setup IDE provides very limited functionality.
1) Add msiexec.exe to your setup project. You can find it in the WinSys folder. It only adds 63KB to your package, no big deal.
2) This app will be used to execute the uninstall. VERY IMPORTANT! Make sure you configure it to be installed in the WinSys folder! The reason is if you put it anywhere else, the uninstall will lock up because it will try to uninstall msiexec.exe, but it cannot because that is what is running the uninstall. (You could put it somewhere besides the WinSys folder and mark it as permanent, but that would be poor form.)
On Win2K and higher this file is part of the Windows File Protection. It does not ever actually install (or try to uninstall) because it is protected. The setup basically ignores it, but you have to include it in your setup for the purpose of having a target to create the uninstall shortcut.
If your setup may be run on Win98 or NT4, you need to install msiexec.exe to the WinSys folder and mark it as permanent, because W98 and NT4 do not have the WFP found in higher Windows versions and the package will try to uninstall it and lockup.
(I hope that makes sense?)
If you did not understand the above explanation, don't worry. Just make sure the msiexec.exe is installed in the WinSys folder and mark it as permanent for good measure and it will work on all Windows OS versions.
3) Once you have added the msiexec.exe file, create the Uninstall shortcut wherever you want it to be. (I'm assuming you know how to do this in VS NET IDE.
4) Set the properties for the Uninstall shortcut:
Working Folder: System Folder (probably does not matter what this is set to actually).
Target: msiexec.exe
Your setup is now configured to run msiexec.exe when the user clicks the Uninstall shortcut.
5) Now you have to add the command line arguments. You have two switch options:
/i
/x
The /i switch will cause the setup to run in repair mode which gives the user the option to uninstall.
The /x switch will start the setup to uninstall only.
At face value, you would think that /x is the preferred switch. But there is sometimes a problem with it. It displays a dialog that asks you if you are sure you want to uninstall. But the dialog does not always appear on top, and if it does not, many users will think nothing has happened. (Try it both ways, /i and /x, you'll see what I mean.)
6) Add the Product code GUID after the switch to complete the command line arguments. You can find this in the Setup Project properties page as "ProductCode". Copy the GUID as is.
When you are done, the Property page for your Uninstall shortcut should look something like this, except your GUID will be different of course:
Name: Uninstall
Arguments: /i{1FD74ECE-4A34-434E-AC0C-A8B720844332}
Target: msiexec.exe
Working Folder: System Folder
That should do it.
Since there are a number of steps, please repost that you got it working, or else post if you have probelms. I tested this on Win2K. If you set it up properly it WILL work.
Robert
|
|
|
|
|
Thanks for detailed answer
After googling,i found that,if i add a batch file in my package with the following line
msiexec/x {Product ID} ,i exactly dont remember the switch,
after running the shortcut on client machine,it did install the program but it also showed DOS window due to execution of batch file
However,i was advised by mnay people that i shoudn`t add Uninstall Shortcut in start menu as this isn`t feasible,therefore i removed it now so that one can uninstall by going ot Add Remove Program applet
Thanks
-adnan
MyBlogs
http://weblogs.com.pk/kadnan
|
|
|
|
|
Yes, the batch file approach is the quick and dirt way, but I don't like the DOS window appearing.
It's not that it is not feasible - you can do it using the technique I described. People say you should not add an Uninstall shortcut, not because it is not feasible, but rather because Microsoft Logo program says that you should not add an Uninstall shortcut.
Yet many Microsoft products doi exactly that, despite what they say.
Examples:
I just downloaded the most recent Platform SDK from Micrososft. It adds an Uninstall shortcut to the menu.
I downloaded the beta version of Microsoft's new Anti-Spyware application. It adss an Uninstall shortcut to the menu.
MSDE setup adds an Uninstall shortcut to the menu.
In short, unless you plan on having your setup Logo Certified, add an Uninstall shortcut if you want to and don't worry about people saying you "should not do that.
(And besides, what's the point of going through the hassles of getting Logo certified when most Microsoft setups don't even meet their own Logo requirements?)
Robert
|
|
|
|
|
Purpose Behind of calling DTS Pacakage is to create flat file containg records And again i have to use this file or read records and update my table.
Text file has got fix length.
So can we use DTS packkage Which can be useful to convert data from text file to database.If possible Provide code for the same.
Sagar S Jagadale
|
|
|
|
|
Hi Sagar,
You can go through the link given below.
http://www.15seconds.com/issue/030909.htm.
Hope this will help you.
Thanks and Regards,
SGS
|
|
|
|
|
Hi Guys and Gals!
Do controls, Panels for example, have a maximum size limit?
If so, what is the maximum width of a panel?
Thanks!
Solid Rock
|
|
|
|
|
(0,0)You can set it's size as you want there is no minimum size for any control UNLESS you explicity define this in it's properties
|
|
|
|
|
Not minimum - maximum... When you try to set the maximum size (width, for example) of a control (a panel, for example) to a value that is over 32767 (signed int16), it is automatically set back to 32767.
Is there a way to set the width value of a panel to over 32767?
|
|
|
|
|
Hi, All:
I play video using AudioVideoPlayback.Video in C#. I need to draw some markups on the video. How can I do this? I tried the following code. But once the function RenderToTexture() is called, I noticed several important properties (AverageTimePerFrame , etc.) in the video object is missing. Even after I work around this, the video shown in the event handler video_TextureReadyToRender() is corrupted and does not advance. I'm using DirectX (Feb 2005 Update). Please help.
Thank you.
<br />
private void LoadVideo()<br />
{<br />
PictureBox box = new PictureBox();<br />
Video video = new Video(video_path);<br />
<br />
PresentParameters present_parameters = new PresentParameters();<br />
present_parameters.Windowed = true;<br />
present_parameters.DeviceWindow = box;<br />
present_parameters.PresentFlag = PresentFlag.Video;<br />
present_parameters.SwapEffect = SwapEffect.Flip;<br />
<br />
Device graphics_device = new Device(0, DeviceType.Hardware, box,<br />
CreateFlags.HardwareVertexProcessing, present_parameters);<br />
<br />
video.RenderToTexture(graphics_device);<br />
video.TextureReadyToRender +=<br />
new TextureRenderEventHandler(video_TextureReadyToRender);<br />
<br />
video.Play();<br />
}<br />
<br />
private void video_TextureReadyToRender(object sender, <br />
TextureRenderEventArgs e)<br />
{<br />
e.Texture.Device.BeginScene();<br />
....<br />
e.Texture.Device.EndScene();<br />
e.Texture.Device.Present();<br />
}<br />
Recnelis
|
|
|
|