Raj1979's Q&A profile
Smart Device Development CAtlString::Format problem under VS2005 - Smart Device application - ATL 8.0
Hello How can I use function CAtlString::Format under VS2005 (with ATL8.0) to format string longer then 1024 characters - for SmartDevice ATL application! I have problem with of CStringT class and template parameter StrTraitATL because using function wvsprintf in ChTraitsOS::GetFormattedLength (The maximum size of the buffer is 1024 characters) Thanks, Michal Hi, Have a look at the CStringT class documentation at. http://msdn.microsoft.com/library/default.asp url=/library/en-us/vclib/html/vclrfcstringt.asp You have two options: ATL string objects use format functions that limit size at 102 ...Show All
Visual C++ unix compilation
i am trying to compile a code written in unix and gcc compiler this code include a headear file called "stddef.h" The content of the headear file is /* * This is just an RC_INVOKED guard for the real stddef.h * fixincluded in gcc system dir. One day we will delete this file. */ #ifndef RC_INVOKED #include_next<stddef.h> #endif So when i try to compile it it gives me an error : invalid preprocessor command 'include_next' how this problem can be solved Have you tried to #include <stddef.h> directly stddef.h is one of the c standard header, ...Show All
Visual Studio Tools for Office Getting Number of Charts and Setting Titles
In VS2005 B2, how can I get the amount of charts on a sheet and set the title for each in a loop I did figure it out, however, I am assuming with VS2005 B2, ONLY Office 2003 is supported thru the .net and anything below that is a com ref Or else Im not doing the setup correctly. ...Show All
Visual Studio Express Editions P2P Help needed!
HI, I would like some help in trying to create a P2P program but im not sure where to start, what codes do i need The program will be used for sharing files to other users Im using Visual basic 2005 express edition and would like help tj2007 ...Show All
Windows Forms async sockets
Hi, I'm running into problems with using async sockets. I've only recently started playing with these so I'm a real novice at this. My server is pretty basic for now. It accepts a few commands and sends back appropriate response. For ex. when it receives "date" it sends back today's date etc... Anyway, my client is able to connect to the sever.&n ...Show All
SQL Server Browser Compatibility in SSRS 2005
How can I get my report to render correctly in Firefox The report displays squished to the left side of the browser as it did in SSRS 2000. Is it the viewer that does this or a setting I need to set I am running my report from a URL. Also seems to open ok if I export to PDF. Does not work in HTML view. I need suggestions regarding the report being viewed in firefox: Problem: In Matrix reports the "sub Total" Columnm is getting wrapped to .0001 in (Probably!!!!! not to that accuracy), But i can see the remaining part like Row and Column Cells r displaying properly. only the Last Co ...Show All
Visual C# Problem with editing app configuration
I used the Visual Studio IDE to edit a textbox's app config settings, and now if I run my app using CTRL-F5, I get an error message, indicating that the app must shutdown: "MyApplication has encountered a problem and needs to close. We are sorry for the inconvenience." If I remove the textbox app settings, I am able to run the app, but of course, the textbox does not persist its contained text string. Can anyone tell me what I can do to fix this Warmest regards, Mike I deleted the directories that get created under C:\Documents and Settings\ UserName \Application Data\ and C:\Docum ...Show All
SQL Server Problems running SQL Agent Jobs & SSIS Packages
I'm having some difficulties with the SQL Agent and running my SSIS packages. At present, I have several packages that import data from Oracle, a few that use a JODBC connection and several more that transfer data from other SQL servers (2000) I originally had the SQL Agent log in as a System Account, and although the pacages run fine if I manually right click and execute them, if I add them to a Job they fail with a login error. I then changed the login details to my domain account and the Jobs that run accross the SQL servers run fine. However the others that use Oracle and JODBC still fail with login errors. I've tried creating Credenti ...Show All
.NET Development How can I open a file on a remote machine?
I am using Visual Studio on Win-XP Pro and I am trying to read a .txt or a binary file... I have: private void TextFromFile() { string FILE_NAME = "MyFile.txt"; if (!File.Exists(FILE_NAME)) { Console.WriteLine("{0} does not exist!", FILE_NAME);   ...Show All
SQL Server VS2005 / NonExecuteQuery / SQLDataSource
Please help me before I split my head open on my desk! I'm new to .net, I'm having to learn it for my new job - so they've gotten me started on VS2005 and SQL Server 2005. I have a SQLDataSource that executes a Stored Procedure. What I want to do is get a value back from my stored procedure so I can run a script only if successful. It seems like the "NonExecuteQuery" function is what I'm looking for, but I can't find any examples of how to use it with a SQLData Source. All the examples I've seen have everything in the code beside page. Please tell me how I can get a value back (all I'm looking for is a "true" is the quer ...Show All
SQL Server Can Visual Studio map SQL Server to XSD Schema?
I am creating an annual XML document to submit to a government agency. They have published an XSD Schema . Our data is in SQL Server 2000 . I need some way of associating columns from tables in SQL Server 2000 with the elements from the XSD schema to produce a valid XML document. It looks like I could use XMLSpy or Stylus Studio , but I think there must be some way of doing it in Visual Studio 2005. Does Visual Studio 2005 have tools to help me do this Can anyone direct me to a WebCast or part of the documentation that would dexplain I can do this (P.S. If you are curious, this is for the CDFI CIIS) SQLXML has suppo ...Show All
Visual Studio Team System Task "WSS.WssPortal" failed exception while importing the process Template
I exported MSF Agile process template successfully at my local drive and then I tried to import the same . I got a import failure message with the following exception. Can anybody tell me that what may be the reason for that failure. Event Description: Task "WSS.WssPortal" failed Exception Type: System.Net.WebException Exception Message: The request failed with HTTP status 404: Not Found. WebException: Response Status Code: NotFound WebException: Response Status Message: Not Found WebException: Status : ProtocolError WebException : ToString() = System.Net.WebException: The request failed with HTTP status 404: Not Found. &nb ...Show All
SQL Server ODB Datareader time columns
I am using an ODBC Datareader to connect to a proprietary DB (Epex) and I need help on column mappings. The Epex database has a number of time columns which we successfully imported using SQL 2000 DTS by defining these as varchar(5) . When using SSIS (Service Pack 1) these fields are shown as 'eight-byte signed integer [DT_I8] '. I have attempted to these columns to both [DT_WSTR] and [DT_STR]' without success. I can change the External Column type to [DT_WSTR] but I am unable to alter the Output Coulmns, when doing so I get the following error message: Error at Data Flow Task [DataReader Source [1]]: The data type of output ...Show All
Windows Forms User Submitted Improvements
I have already ported the WebServices component of the app the C#. I am in the process of adding additional functionality. o. The ability to create Project Types o. Assign standard tasks to a Project Type o. Automatically populate the Tasks table with preassigned ProjectTypeTasks I also plan on migrating functionality from the Time Tracker ASP.NET sample app. My qu ...Show All
Windows Forms multithreads... no!
Have worked all day with this problem. Have a thread running, it listens to a server(irc) the server is sending commands/data. The thread takes this and this is when the problem come: Like select case myMessageFromserver case "lala" ' I want to open a new form, in there there is a new thread running Have tried with dim frm&nbs ...Show All
