|
HI,
I have seen applications like Reflector that can
perform a self update. How can I replace the currently running executable
with another file downloaded from an update location? I have tried
disassembling Application.Restart() and writing the new file in the process
gap but that does not work. I figure there must be some best practice for
this?
Thanks
tbhattacharjee
|
|
|
|
|
You have the program check to see if it needs to update. If it does, it runs another program that does the update. That way you can actually update the old application.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
I am trying to convert native code to C# through DLLs. The dll works fine when called from C++ but when called from C# (using P/Invoke), it give exception error. Anyhow has any idea what the issue could be. Basically i am working on Math Kernel Library. Any help will be appreciated.
Thanks
|
|
|
|
|
If you're trying to call a dll through p/invoke, best bet is to check that you go the pinvoke signature right.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have a DirectX environment going and working beautifully. I also found a way to get frames per second and that is working too.
I am using DirectX Sprites to draw everything. Now, the problem is with scaling the sprites. If I have about 30 scaled sprites, I nearly halve my framerate. I know the problem lies with having to scale it everytime I draw it, any ideas?
if (!bVisible)<br />
{<br />
return;<br />
}<br />
<br />
if (!bScaled)<br />
{<br />
AdjustScaling();<br />
bScaled = true;<br />
}<br />
sprite.Transform = scaling;<br />
<br />
sprite.Draw(texture, sourcerectangle, center, position, color);
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
hI all,
I need to add text inside external .rtf file..How to add text into .rtf file...?
Thank you..
%#&kmpYrlHSGYG5@#($_+!@!(*JASnjshdk,cm_0ashjhdbn@#$!48mkhfbchsh))^%#W%&@YW7wsdfjw789';'][]\`~JKJQ4$!@#~)-HSKS^&*1)JK12@#@$~!1`DFGkqp][]\]?Zas;EWRG%!@~)(^&BVAG
|
|
|
|
|
You load it into memory, add the text, and save it.
I guess you need to know how to parse RTF to do that successfully.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I suggest accessing the RTF file using MS Word COM APIs (if available)and to use the same MS Word COM API to save the file as RTF again after you made your modifications.
MSDN has a link to the RTF specification http://msdn.microsoft.com/en-us/library/aa140277(office.10).aspx, but you might want to avoid this method as it is very tedious.
|
|
|
|
|
this kind of disconnect has happened to me before and then it went away, but I can't figure out how I fixed it.
basically, I input a text value in a form and the try to read it in a string, and the string comes in empty.
Also, if I set the textbox value to a string, it doesn't update on screen.
What am I missing?
www.solvengineer.com
Code Exchange for Scientists and Engineers
|
|
|
|
|
Well, hard to say, without seeing some code. I mean, if you set the textbox value then it will update on screen, no question. And if you grab the value, the one you get, will be what's in the textbox.
So, something else is going on here.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Is there any method or property of DataTable or DataRow to query the existence of a partucular column.
I am looking for some property like DataTable.ColumnExist.
Thank you.
|
|
|
|
|
|
Thanks. This is exactly what I am looking for.
|
|
|
|
|
I have never really dealt with network packets, and am writing a fun program to really dive into them. I am making an RPG Game using DirectX for graphics, input, and sound. So far so good. I have the game engine started and think all is ok there.
I now want to start the client/server side of the programming. The problem is I don't know how to have the client and server actually talk. Do I use SOAP and send object, I could use TCP packets... Which can handle more concurrent connections? It is to be a MMORPG...
So, if I use one technology over another, still how to I determine what action they are taking(walking, talking, attacking... ect.)
Basically, what technology should I look into, and can you explain why and very basically how they work.
Keep in mind I am not asking for code but for advice. Code samples would be cool though. If you know any articles, send them my way as well.
Thanks for any help!
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
I strongly encourage you to use WCF to implement the client/server bits of your app. It's easy to use, robust and very flexible. See this[^] CP section and this[^] MSDN tutorial.
/ravi
|
|
|
|
|
I skimmed over it and I still don't see how I determine what they are trying to do(walk, talk, attack ect...)
Have you used this before, and what for?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
You can use WCF to easily implement a solution for any of these scenarios:- Client (player) polls server when it needs to update its state of the world.
- Client (player) informs server when it performs an action (move, fire, etc.)
- Server broadcasts events to clients when the state of the universe changes.
I suspect you may want to use the 2nd and 3rd options, although you could use any combination. Btw, WCF is very efficient in handling multiple client sessions.
I currently use WCF at work.
/ravi
|
|
|
|
|
Ok, I will look into. Thanks for the help.
Would it be ok if I contacted you at your email address on your signature if I have any problems?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Feel free to send me email, although I can't guarantee a swift response. You're better off posting in this forum or in microsoft.public.dotnet.framework.
/ravi
|
|
|
|
|
Hi guys.
How can we change TreeView's node icon?
Do you know ?
|
|
|
|
|
Its a little wierd, but here it is:
this.treeView1.ImageList = new ImageList();
this.treeView1.ImageList.Images.Add("car", new Bitmap("C:\\Car.bmp"));
TreeNode myNode = new TreeNode("Car Node");
myNode.ImageKey = "CaR";
this.treeView1.Nodes.Add(myNode);
You can also set the ImageIndex of the node instead, so if you set this to 0 the node will use the first image in your image list, and if you set it to 1 it will use the second and so on.
Also, you will probably want to set the nodes SelectedImageKey unless if you want to use a different image when the node is selected.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Game Programming articles start - here[ ^]-
modified on Monday, May 19, 2008 9:24 PM
|
|
|
|
|
Use the:
treeView1.SelectedImageKey
property.
FYI the image needs to be in the correct size because the treeview will NOT scale the image.
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_______________________________________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
radialronnie wrote: FYI the image needs to be in the correct size because the treeview will NOT scale the image.
Yes it will.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Sorry bout that, never saw that before.
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_______________________________________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
A train stops at a terminus, a bus stops at a terminus, on my desk I have a terminus.
(Well, I used to anyway.)
|
|
|
|