-
- Visual C#
by HMote
- 7211 Replies
- HMote Views
- Last post
-
streamwriter not writing to file
- public StreamWriter writeFile;
string filename = logDirectory+DateTime.Now.Year+DateTime.Now.Month+"_Ftp.log";
writeFile= new StreamWriter(filename,true);
writeFile.Write("text to write");
This above code does not work for some reason...can anyone tell me why This code is suppose to append some log text each day to the file and a new file is created every month.
-
- IE Development
by robmad
- 2881 Replies
- robmad Views
- Last post
-
snap-in failed to initialize
- Since uninstalling WDS 3.0 Beta from my computer the indexing and search services do not seem to be working properly, if I go to start>search>change preferences>with indexing service>change indexing service settings (advanced) - I get an error message -
Snap-in failed to initialize
Name:Indexing service
CLSID:{95AD7....}
followed by another message -
Snap-in creation failed
The snap-in is not created, it may not be installed properly.
Also if I look under start>all programs>administrative tools>services>windows search service - I find the service has not started and if I attempt to start it manually I get this error -
Could not start the Windows Search Service on Local Computer
Error 1613:This installation package cannot be installed by the Windows Installer Service. You must install a Windows Service Pack that contains a newer version of the Windows Installer Service.
I have read about similar problems from other WDS 3.0 users but the problem usally seems to rectify itself once WDS 3.0 is uninstalled, any help would be apprieciated.
Windows XP Home SP 2
-
- Windows Forms
by Manu Singhal
- 12743 Replies
- Manu Singhal Views
- Last post
-
merging in datagridview
- I ;want to merge column header and column cells using DataGridView.
Can somebody help me on the same.
Thanks in advance.
Manu
-
- Visual Studio
by Keith Hall
- 16716 Replies
- Keith Hall Views
- Last post
-
xaml text transform
- Is there any way at all to transform text in a textblock to uppercase using XAML I know that it can be done programatically or using a FlowDocument, but what about a simple textblock
-
- Game Technologies
by TruePsion
- 6072 Replies
- TruePsion Views
- Last post
-
tutorials thread
- If it is ;not too much trouble, could this topic be stickied I am just wondering if we could have a main thread that carries links to all the tutorials. In other words, someone makes a thread with a new tutorial, and then, they post the link to it here with a description of the tutorial. That way, others don't have to search through a whole forum for just one topic. Just an idea to make it easier on everyone.
;
On a side note, I plan on linking this thread to another thread titled: First XNA Program Development Team (FXPDT). Take a look at it. Thanks for your time. Also, I have added some tutorials for you all for now.
;
P.S. Since the tutorials are publicly viewed and linked to, I don't think you need permission to link to a new threat but be sure to put the person's handle name under the link just incase (although you see their handle in the thread, some people may want credit up-front).
Side Note: If you have a mini-game or something like that which you would like to share for others to learn from, be sure to extract the code onto notepad or another writing program so that the code can be viewed. Thanks.
;
Tutorials:
Scrolling 2D Background posted by George Clingerman: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=690582&SiteID=1
Spacewars Keyboard Mapping posted by somecrazyguy: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=690745&SiteID=1
Tile Mapping & other tutorials posted by Yeagermesiter: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=690099&SiteID=1
Audio Tutorial posted by Mark Coffman: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=690285&SiteID=1
Collision Detection thread started by hallscreations: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=683944&SiteID=1
3D importing thread started by Mehdi Mahdloo: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=689261&SiteID=1
Drawing in 2D Tutorial posted by andy0482: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=688813&SiteID=1
Animating Sprites & time0based animation ;threads started by detzX: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=687230&SiteID=1
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=687537&SiteID=1
Importing images with Transparency thread started by killfr0g: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=686055&SiteID=1
Rotating Camera thread started by Shane Lile: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=684939&SiteID=1
Simple Menus posted by bstoker: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=684748&SiteID=1
Drawing text thread started by Summoner: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=684843&SiteID=1
-
- SharePoint Products
by Raulsassaa
- 1888 Replies
- Raulsassaa Views
- Last post
-
appconfig
- I am developing some components using C#. I'd like to have several appconfig, each for each of the components (since each component will have different parameters). I have some test projects I use to test each of the components, and as far as Ive seen, the components are only able to "see" the appconfigs that belong to the TestProjects, not the appconfig I have put in each of the components.
Why is that Is there something I could do to overcome that
-
- Audio and Video
by MarcGBeauchamp
- 1166 Replies
- MarcGBeauchamp Views
- Last post
-
rc2 (5744)
- I did not see any SDK released or any mention that it would be coming. Is the RC1 still valid Or maybe 5728 I just want to know if I should be waiting before upgrading. If it is coming, any idea when
Thanks!
Marc
-
- Visual Basic
by Mitch5713
- 8556 Replies
- Mitch5713 Views
- Last post
-
stop debugging now please
- Ever since i installed vb 2005 some of my applications will not run!!! My Mcaffee programs are stopped from running by Just in time debugging finding a "32 bit exception error" this must be disabled how do I do that I dont mind the debugger running with the programs I create but not the ones already on my desktop!!!!!!!!!!!!!!! How do I keep my "terminal Services" on by default so when I start the computer they will be on Now I must always manually reset them Thanks Mitch
-
- Microsoft ISV
by Dan_Ohio
- 1294 Replies
- Dan_Ohio Views
- Last post
-
supplying variables for a stored procedure through a form
- Hello all,
I have been racking my brain and the internet on this question for months now. I sure hope someone here can help me.
I have a bound form where data from a help desk call can can be entered. I have a button on the form in case work order needs to be created. The button executes the stored procedure below, which is supposed to insert a record into the tblWorkLog table based on the current entry in the Work Order form (the user just entered). My problem is this, how do I pass the data in the forms!WorkOrder!JobID control to the stored procedure, which is called using the "DoCmd.OpenStoredProcedure" subroutine. The DoCmd event will not allow variables to be listed after the procedure name.
In a nutshell, How do you pass data from a form field to a stored procedure.
CREATE PROCEDURE dbo.DTSP_CreateWorkLog(@JID int)
AS
SET NOCOUNT ON
INSERT INTO dbo.tblWorkLog (RecordDate, TechnicianSS, Continuation, ContJobNum, SiteID, Issue, WOJobID)
SELECT CallDate, Recorder, 0, 0, SiteID, Issue, JobID
FROM dbo.tblWorkOrder
WHERE (tblWorkOrder.JobID = @JID) where @JID is the data from the form field
GO
Thanks in advance
Dan
-
- Visual FoxPro
by Lawrence Chang
- 793 Replies
- Lawrence Chang Views
- Last post
-
how to set file handle in windows xp
- I'm using foxpro 2 application. Is there anyone able to tell me how to set up the number of files handle in Windows XP.
DOS o/s: I can put "Files=100" in config.sys
Windows ME o/s: I can put "Pervmfiles=100" under [386Enh] in system.ini.
Windows XP o/s : How to do
Thanks.
-
- Smart Devicet
by pdclose
- 7432 Replies
- pdclose Views
- Last post
-
how best to animate (move a bitmap) in c#
- Hello,
I am porting a card game to C#/.NET, which is totally new to me. So far, things are going well, but I want to be able to move (drag) cards around, and although I have something that works, it flickers quite a bit, and also has some a questionable aspect to part of it.
My basic approach is to render a card to a bitmap, then as the mouse moves (MouseMove event), do:
Restore previously saved screen rect Use CopyFromScreen to save the portion of the existing screen that is about to be drawn over Draw the card bitmap where the mouse is The suspicious part is that CopyFromScreen copies using screen coordinates, whereas everything else is relative to the main form's coordinates. I found the following works, but seems very kludgey!
save_g.CopyFromScreen(newX + this.Bounds.Left + SystemInformation.FrameBorderSize.Width, newY + this.Bounds.Y + SystemInformation.CaptionHeight + SystemInformation.FrameBorderSize.Height, 0, 0, saveBuffer.Size);
Is there a better way to do this animation And if not, is there a better way to save the screen before drawing on it I tried using a PictureBox control, but it didn't have a transparent background, so my animated card has a square border. Maybe that is not so bad :-)
I'd like to port this game to the Compact .Net fraework, so something that works there as well would be ideal.
Thanks!
Paul
-
- .NET Development
by AravindKumar
- 13098 Replies
- AravindKumar Views
- Last post
-
error in addition of double variables
-
Hi,
This is Aravind. I got an error due to addition of two varibles which is declared as "Double". It shows the wrong sum up.
Sample Code is as below:
Dim amt1, amt2, z As Double
z = 0.0
amt1 = 74.68
amt2 = 168.49
z = amt1 + amt2
The Answer should be 243.17
But ...It shows
"243.17000000000002".....
Why it happens ....it will leads to Big problem....when summing up the Money values....
Can u please clarify this....
Its urgent....
Regards
Aravindkumar.P
-
- Windows Vista
by Rupesh Bhurke
- 6718 Replies
- Rupesh Bhurke Views
- Last post
-
cocreateinstance problem
- Hello there !
I am creating an application which contains multiple graphs. Also I have a Directshow Filter which I intend to use in many graphs simultaneously. I am using CoCreateInstance() to create instance of my filter. In second instance (ie. my other graph with same filter is still running.) CoCreateInstance eighter does not return or it returns 0x8000ffff error.
Can anybody please tell me what is happening here and corrective action I can take
Thank you,
-
- Visual C++
by A.Russell
- 5780 Replies
- A.Russell Views
- Last post
-
system::string to int
- How do you convert a System::String to an integer int the same way as atoi (atoi needs a char*, and I can not seem to get one out of a String object).
For example, if the stiring is "5," how do you convert that into an integer value of 5
-
- VS Team System
by jimsurf
- 15574 Replies
- jimsurf Views
- Last post
-
profiles vs sessions best practices
- I am currently migrating an application from ASP to C# 2.0.
I have designed the c# site to use a session firstname session ID and session Email to reduce the number of hits to the database, and to manage the users state.
I recently learned about profiles, and I have attempted to use a profile for the user instead of the session.
I am a little confused in how a profile works compared to a session and could not seem to find an abandon or dispose method. Is using a profile instead of a session a bad idea
In addtion, I am using a page base class that all pages are inheriting. This class includes a session check to control access to certain pages. I am wondering if it is possible good/bad to use a profile instead of the session, and I am getting errors when I try to directly access the profile object from the page base.
Any help out there