Jeremy Grand's Q&A profile
Visual C# new and shiny
Yep I'm new and shiny to C# - coming from a C and Java background. Been looking for something that lists the base class's apis (preferably HTML - kinda like java's api if at all possible) to get a general idea of what classes are available and what they can do. Have 2 books ordered but would like to get a head start if possible. I have quickly looked at the specification doc provided in the visual studio - not exactly what I am looking for (or maybe just the format of it through me off) as well as a couple quick googles (maybe I am using the wrong search phrases) and a very quick search on these forums (base class api and a few variations). Links, google search phrases, or a spoon/clue would be appreciated. ...Show All
Smart Device Development Closing Event in Smart Device Application
Hi, I am actually working on a smart device application and i am having problems to handle the closing event of a form. I have to prompt the user if he really wants to exit with a dialog box. i have put the codes in the closing event but still the form closes without showing the dialogue box. i have also tried the e.cancel = true code but still its not working. can anyone help please Thanks I am using the following code Private Sub FormClosing(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing e.Cancel = True End Sub But still it does not work ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Helpful Snippet: VertexStreamer
Between setting up a vertex buffer, writing and creating a vertex decl, and creating an array of vertices and actually writing the data to the VB, rendering vertices is a lot of work, particularly if you're just hacking up quick things or just getting started. So in the hopes of simplifying things, I'm making the XNA port of a small snippet of code I've had lying around available. Here's how you would render a triangle with this class: partial class Game1 : Microsoft.Xna.Framework.Game { private Utility.VertexStreamer m_Streamer; private Effect m_Effect; public Game1() { InitializeComponent(); m_Streamer = new Utility.VertexStreamer( this.graphics.GraphicsDevice ); CompiledEffect ce = Effect.Compil ...Show All
Visual Studio Express Editions Weird errors
Hi everyone, I am struggling to make a linked list implementation. But when I complile the program, I got really weird errors whixh I can not overcome. Would you please explain me the following error's meaning c:\documents and settings\mert\belgelerim\visual studio 2005\projects\hw3-2\hw3-2\person.h(6) : error C2011: 'Person' : 'class' type redefinition c:\documents and settings\mert\belgelerim\visual studio 2005\projects\hw3-2\hw3-2\person.h(6) : see declaration of 'Person' c:\documents and settings\mert\belgelerim\visual studio 2005\projects\hw3-2\hw3-2\addressbook.cpp(15) : error C2027: use of undefined type 'Person' c:\documents and settings\mert\belgelerim\visual studio 2005\projects\hw3-2\hw3-2\person.h(6) : see declaration ...Show All
SQL Server Report server does not initialize
I am using ms sql 2005 standard edition on windows Nt Everything is working fine except the report server.. when i run the configuration tool and try to start the report server, it fails to start.. i am using sql on the local machine . i have set p lmy database on the windows credentials.. i am using my machine name/user name as the account name for the database setup. i have also used rsconfig utility to configure the report server but nothing happens after that.. pls help i am getting the error when i click the preview button in report server for generating the reports... i have checked the error log and everything seems to be running fine. i have done the reistallation but it s ...Show All
Software Development for Windows Vista Campaign using workflow
Hi, I am starting on an assignment where I have to implement a solution for running a campaign. As I was looking for options I came across windows workflow which looks very interesting but I need help on how I can model my requirements using the same Assume the following steps in the campaign 1. Start 2. Run a query & act (for each row in the resultset perform an action like send email) 3. On Event 3a.1) Response received 3a.2) Generate coupon & Send email 3a.3) End 3b.1) Wait for condition to be true (elapsed time is X hours/days) 3b.2) Run a query & act (find those who did not respond and send reminders 3b.3) End Questions 1. I am assuming that the definition of the campaign (in terms of number of steps, queries and ...Show All
Visual Studio Express Editions Save As animated gif impossible?
I am working on an image editing application and am on the final step, which is the user saves the 3 images they have edited as one animated gif. I have done a lot of web searches trying to find some code that will accomplish this, but have come up empty. Is it possible If so, how is it done Hey Widget.... We could working on this together. The first thing to know about C is that their syntax is backwards. Private Sub ProcessFiles() 'String [] imageFilePaths 'really means Dim imageFilePaths () as string = {"c:\01.png","c:\02.png","c:\03.png"} ' See there are infiltrating VB with squiggles 'This is the largest conversion concept for the whole file. 'String outputFilePa ...Show All
Visual C# How to check for letter
in my if statement i want to check to see if the user has entered a letter, how would i go about doing that since i cannot convert string to char.....and it seems C# doesnt let you do IsNumeric(string value) like in VB....any help with this [code languge="C#"] double y = 0; if (x.Length <= 8 || x.Length > 13) { MessageBox.Show("Your phone number does not contain the correct " + "number of digits. Please format number " + "as ###-###-####","Incorrect Number Format", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return x; } [/code] I think Ahmed's solution is far better than using the Visual Basic import (which will probably just call char.IsNumber() anyway). ...Show All
Windows Forms ClickOnce over secured URL
Dear forum, The scenario is very simple: The user logged in to a web server lets say "Bea Weblogic", and then the user tries to click on "ClickOnce" application, is it possible to pass the session Id cookie to click once, to avoid "(401) Unauthorized " that I get all the time Thanks in advance. I've noticed the same thing with a project deployed on an Apache 2.0 server. The client (ie. the browser) passes the credentials to the server to request the publish.htm page, but when the user clicks the link to the .application file, the 'client' (the ClickOnce control, no longer the browser) does not inherit the authentication information from the browser, and ...Show All
Visual Basic filesystemwatcher event, wait for file to be filled with data, do until loop
I am using filesystemwatcher to monitor a directory for files. Once a new file is created, my program converts the binary file to ascii and does some computations on the ascii file. What is happening is that the binary file is created but has a file size of 0 bytes for a while until it is filled by the sensor (that time will vary). I tried to put the following code into my eventhandler (a do until loop) for it to delay a little bit (until the file size is greater than 300 bytes), but it never fires. It is capturing the new file creation event, I just apparently can't update the length variable (sFilelength)...and the file is 356 bytes. My code is below, any help is appreciated: Dim inputarg As String = e.FullPath 'this is the name ...Show All
SQL Server Resume execution after error
Hi, I have a stored procedure containing iterating cursor in which iam inserting records in a table. My problem is that whenever any data mismatch occurs whole process gets stops. I want it should skip that error record and continue with next iteration. Like on error resume next in vb. Please suggest. Sharma: Cursors are usually a bad idea. What are you doing that makes you believe that you must use a cursor Dave ...Show All
SQL Server SSIS execution error
Hi I am getting this error when I try to execute a package source is oracle and destination is sql [Source [1016]] Error: The AcquireConnection method call to the connection manager "Oracle_test" failed with error code 0xC0202009. It was working fine until I changed the Connection to New Connection from Data Source. Yes I am able to connect to Oracle and I've tested the connection in the package, during design time it shows "Test Connection Succeeded" and preview shows the results also but at during runtime I get this error. And if I change it back to Oledb Connection instead of Connection from Data Source it works fine. ...Show All
Visual Studio Express Editions Cant open project
Im just a beginner in vb, and I dont know why when I try to open my project it does not work. It shows up in the left hand side of the start page but does not do anything, if i double click it or if i click the open link. either uninstall VBExpress completely, reboot, then re-install or go into control panel > add/remove programs and select VB Express and press the change/remove button then select to repair or re-install and follow the instructions ...Show All
Visual Basic VB .Net Reloaded
Often I've seen apps shutdown and restart again... and I've been doing this to my apps do it after an error... just so that I know it will restart ok (after the error). How do I make my app shutdown and automatically restart Thanks. Any automatic restart you have to be concerned about - as this could restart in an infinite loop where it keeps crashing at startup and trying to restart automatically and crashing again ad infinitum. ...Show All
Windows Forms simulating mobile phone control
Hi, I need to make a windows forms app that will simulate a 3G mobile phone application. So, the only controls I have to select certain buttons/links is Up, Down, Left and Right. Is there any easy way to make this work The way I was thinking was to keep two ordered lists: one with the controls ordered vertically, and another with them ordered horizontally. Then, when the user pressed Down, for example, it would jump to the next item in the vertically ordered control list... Isnt there an easier way to do this Huge thanks ...Show All
