Puspak's Q&A profile
Visual C++ how to tokenize a string?
I need your help! Does C++ have something like stringtokenizer which is a class in JAVA I want to deal with a string and my problem just like below: When I read from a file ,I get a line of the file. It reads "1 100 fdsadfdsf" and How I pick the "1" and put it in an int variable,and I pick the "100" and put it in another int variable ,and I pick the string"fdsadfsf" and put it in a string variable. Thank you!!!! Your particular problem can be solved using sscanf function: char sample[] = "1 100 fdsadfds"; int a, b; char ...Show All
Visual Studio Express Editions Unable to "require" or "use" classes and functions from a included .cs file
I am using Visual web developer 2005 Express Edition and i have right clicked the project file in SolutionExplorer and included a .csharp file.It got added inside a App_Code directory. When i created an object for the class constants the dropdown was visible and constants class was selected. Constants cons = new Constants(); When i ran the webform an error occured indicating: CS0246: The type or namespace name 'Constants' could not be found (are you missing a using directive or an assembly reference ) Willfin David. You need to have a line like: using Constants; in your code at ...Show All
.NET Development DataGridView Record Selection
Hey guys I am not a new VB programmer but I am kind of new to the database side of it. THis is what I got, I have a form that fills a datagridview control with data from an access database located locally, I used the dataset designer to create the database connection. I am able to fill the datagridview what I would like to do is when the user double clicks on a record (the data grid only show names) it will create some sort of data table or dataset in which I can pull the rest of the information from (address of record, etc) so I can put this information in textboxs, labels, etc.... thanks Hi! I th ...Show All
SQL Server Processor affinity?
Hi there. This might be a dumb question, so please excuse me if it is :-) I recently purchased an AMD Athlon x2 machine. I'm running SQL Server 2005 (this is a development machine). I'm rapidly learning that the second processor in this machine is pretty much completely unused. Is there a way in setup or in a config file or something for SQL Server 2005 to tell it to use the second processor Thanks in advance... -Eric Harmon This is for SQL 2000, but anyway: http://msdn.microsoft.com/library/default.asp url=/library/en-us/howtosql/ht_config_5lfd.asp Make sure you're not running SQL ...Show All
Visual Basic Weeknumber
How do i get the weeknumber in Visual Basic 2005 Express edition Well that doesn't work for me. There's an interesting article about this here http://www.thecodeproject.com/csharp/GregToISO.asp msg=396665 The code is in C# but shouldn't be too difficult to convert ...Show All
Visual Studio Tools for Office where is Access runtime
I installed Visulal Studio for Office 2005 thinking that it has the Access Runtime included, but can't find it anywhere....Even in the setup I dont have the choice for Access, only for Word, Excel and outlook. Is it included or not Similar question was answered just yesterday. See this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=258458&SiteID=1 ...Show All
Visual Studio Express Editions How do I "return" after a user makes a selection from a menu?
I set up a menu by labeling a variable number of RadioButtons in GroupBox1. After the user makes his selection, I have him click Button1 labeled "Next". When the user makes a selection, I want to return to the next instruction, that is, the line of code following where I set up the last menu, not to a Button1_Click subroutine, because then I would lose my place and become lost. I want to set up another menu in GroupBox1 depending on his last selection, and so on. I have many, many menu combinations in this program. How do I "return" after a user makes a selection from a menu ...Show All
.NET Development Web Service proxy
This might be really basic,but can someone pls explain. I have created a proxy class using WSDL.exe.Do I still need to add the web reference. I'm a bit confused does one normally do it one way or the other or both ways (adding the web reference or using WSDL.exe). Not sure if this even makes sense.. Thanks in advance No, you typically do one or the other. Underneath Visual Studio actually uses WSDL.exe itself to create Web References. Most people try using the Add Web Reference first, and then if they find that too limiting move to using WSDL.exe . ...Show All
Visual Studio 2008 (Pre-release) WBA sandbox question
I am in the process of evaluating WPF as a potential technology for future application development, and I have a question about the web browser application (WBA) sandbox model. Based on what I have read so far, it seems that, in order to prevent UI spoofing, opening a dialog box or new top-level window from within a web browser application is not currently permitted. However, there are certainly scenarios where this type of behavior would be desirable - an application might want to display a dialog to collect information from a user, or launch a new window to display a document or image file. Not offering the ability to do so would seem to ...Show All
Visual Studio Team System Where to save scenarios
Hi there, I feel that the guidance around where to save scenario descriptions for agile is a bit unclear/confusing. Here is how I understand it right now: Once the rank 1 scenarios have been determined, the business analyst (BA) creates a new Word document from the scenario template and outlines the scenario very briefly. That file is then attached to the work item. Dev/someone provides first rough estimate by looking at the attached file of the work item. BA writes full fledged scenario. He creates a new Word document from the template for scenarios. He saves the file to the WSS portal AND attaches it to the work item. That is how far ...Show All
SQL Server Authentication mode, connecting from webpage
Hello, I need help setting up SQL Server Express edition. What I did so far: 1) Downloaded and installed it with windows authentication 2) Installed SQL Server Management Studio Express 3) Created a database 4) Realized I needed SQL Authentication for connecting via php page. 5) Followed these instructions to enable SQL Authentication Now that SQL Authentication is enabled, how do I create a user account that I can use in php pages to connect to the database Thanks, Kurt Hey Kurt. See the documentation in Books Online for the following commands: CREATE LOGIN CREATE USER The create login sta ...Show All
.NET Development common language run time error
i developed an application using vb .net with database connection and i tried to run it unde windows 98 with .net framework 1.1 but i get a common language run time de... error can any one help please We recently experienced the same problem and after following the lead of a corrupted installation of the framework we actually found the error was down to missing DLLs that had been added to the compiled executable at design stage. Once these DLLs were in place the compiled executable worked as planned. ...Show All
SQL Server Problems with Lookup task and dates
I’m trying to make a Lookup transformation with a relation on two string columns and a between dates condition set by parameter: select * from (select * from [dbo].[RgnErhverv_Ansvar]) as refTable where [refTable].[Opretdato] = and between StartDate and EndDate where the second parameter is my Date column (FakturaDato_konv) . My problem is that I keep getting the error: "Error 1 Validation error. Data Flow Task: Lookup [16505]: input column "FakturaDato_konv" (17826) has a datatype which cannot be joined on" The StartDate and EndDate is datetime data type and have tried all of the DATE data types for the "Fa ...Show All
Visual Studio Internet Connection in VS 2005
Hi, I just installed VS 2005 on my machine, but my online help cannot be accessed. I keep getting the message: "The request failed with Http Status 407. Proxy authentication required". IE on my machine does have proxy authentication. Is there a fix for this Thanks, Arshad Arshad, Where does this message appear Is it in a WebBrowser upon trying to view a help page, or is it in the Search toolwindow (Help->Search) Thanks, Jeremy Jones ...Show All
Smart Device Development what is MUTE_MSG_WMP?
when the Telephony namespace is used, i notice this is available in the context sensitive help. googling yields not hit and searching on msdn does not reveal any docs on this. just curious...i was hoping it could be something used to determine if the phone is currently muted or not. This forum is intended to deal with issues directly related to the .NET Compact Framework. It appears that this question can better be answered by someone on one of the newsgroups for Windows Mobile or Windows CE. In order to get a quicker and more accurate response, please consider reposting this question to one of the following newsgroups: ...Show All
