FirstDivision's Q&A profile
Visual C++ How to get char from CString???
Hi I need to have the a constant char array. But it must have contents from 2 different source: "C:\Help\" and mystring, where mystring must be a CString object having "TestFolder". Actually, I like to have a constant char array with "C:\Help\TestFolder" in it by combining the 2 sources. First, I decleared a char : char path[50]="C:\Help"; but I don't know how to get the content of mystring object as char. If I know the way, I would combine its content to existing and declared "path " char array. I presented my case well enough. Any idea please vcboy ...Show All
SQL Server Page breaks after subreports
I have a main report with several sub reports. The short sub reports in the details section of the main report display properly. I have 4 wide subreports in the footer of the 2nd grouping. These look great when I do the regular preview, but when I switch to page layout or export to pdf, these reports have a page break after each that has data. I have no page breaks set in the report at all. I've looked at the other threads on pagination and page breaks but nothing solved my current problem. The closest one is related to the widths, but I've verified my widths are within the limits. Any suggestions Thanks! Sarah Widths Main re ...Show All
Visual Studio Express Editions SQL and VB
Hello I was wanderin say you create an app that has a sql database ... when you publish it and send it to a friend do they need to have sql database to connect to like i do in VB yea im a complet noob sorry and any sql intros would be great.. ty ty ty ty Yes, they need to have a database program installed ( almost certainly the same one ) and you also need to send scripts to build the actual tables/stored procs/views etc to set up a database in the server for them to connect to and use. ...Show All
Visual Studio 2008 (Pre-release) Does Lambda expressions support outer variable? and Nested expressions?
I want to define a expression Func< string , Func<Lot, bool >> exp; It's anonymous methods version is exp = delegate ( string cjId) { return delegate (Lot lot) { return lot.InControlJob.ID == cjId; }; }; But when I write that: exp = (string cjid) =&g ...Show All
Windows Forms newbie to winforms
I'm new to winforms and I have a question. On a button.click event I have some methods Method1(); Method2(); Method3(); My question is : if I want to exit from method1() and not to run Method2() and Method3() how can I do I've tried Close(); Application.Exit() but it's still execute the remaining methods. Hmm...I would like to end this discussion here. It seems to me that this is getting into an unhealthy argument here and not adding value to the conversation. Vikram ...Show All
Windows Forms Debugging ConvertTo method of an ExpandableObjectConverter
I have two struct properties for my control and both properties uses their own typeconverters (inheriting from ExpandableObjectConverter) which basically has the same implementation. The first one is just a Size type and the InstanceDescriptor inserted in InitializeComponent works. The second one is a custom type struct (two booleans) yet I don't get the Initialization& ...Show All
SQL Server Bug in expression evaluator using NULLIF and RAND()
I think I might have found an (obscure) bug in the SQL Server expression evaluator. I'm trying to create some dummy data for testing purposes. I need to make an int column contain either 1, 2 or NULL. Here's my SQL: SELECT nullif ( floor ( rand ( checksum ( newid ())) * 3 ), 0 ) from anytable The rand(checksum(newid()) * 3 creates a random number between 0 and 2. I then use NULLIF to change zeros to nulls. The problem is that the result data contains 1, 2, NULL *and* 0 ! It looks like the NULLIF function evaluates its first argument twice - the first time round to compare against its second argument, the second to ret ...Show All
.NET Development System.Web.Mail
I have a little problem i want to solve. I have created a simple form that i want the user to fill in and finally submit. Now what i actually want is for the filed (label) names + information that the user has entered into the text boxes to be sent to my email when he/she clicks the submit button. I dont want to be using any database i just want to keep it as simple as possible. I havent used System.Web.Mail before and i have gone thru the site " http://www.systemwebmail.com " but I dont know what fields and statements to use and which ones not to. I really appreciate your help. Susan If you are using .NET 2.0 then you s ...Show All
Visual Studio Team System Small Team ISV / Micro-Isv
While the templates out there seem very nice, they don't seem to be a good fit for a small/micro-isv senerio. They seem better suited for larger IT teams. One example are "rolls", they all list more rolls than employees in our company. :) With this in mind I think it best to just build my own template from the ground up. But before I go off an do this, I was wondering if anyone else has already build a workable template (or maybe is building one). Thanks for the response. I took another look at the Agile template and it just doesn't work for me. I know a lot of people love it, but it just fe ...Show All
SQL Server Anytime I connect to an Excel file from SSIS05, I start getting endemic system.outofmemoryexception errors and cannot save
This is my error text... how do I get this nonsense to stop ! =================================== Exception of type 'System.OutOfMemoryException' was thrown. (Microsoft Visual Studio) ------------------------------ Program Location: at System.String.GetStringForStringBuilder(String value, Int32 startIndex, Int32 length, Int32 capacity) at System.Text.StringBuilder.GetNewString(String currentString, Int32 requiredLength) at System.Text.StringBuilder.Append(Char value) at Microsoft.DataWarehouse.VsIntegration.Designer.Serialization.BufferTextWriter.Write(Char ch) at System.IO.TextWriter.Write(Char[] buffer, Int32 index ...Show All
Software Development for Windows Vista VS 2005 RTM Startup Error after Installing WWF Beta 1.2
After installing the WWF 1.2 Beta with VS 2005 RTM I now get an error message during VS 2005 startup that read as: The Proper Type Library could not be found in the system registry. An attempt to repair this condition failed because you do not have the permissions to write to the system registry or the type library could not be loaded. This can be fixed by a system administrator running the program once, which will cause the proper file to be registered. If problems still persist, then try repairing this application from the setup program. I am the administrator of the domain and of this machine. I have tried to rep ...Show All
Visual C++ cannot debug "Hello world!"
Hi, I created a win32 console application starting with an empty project using Visual Studio 2005. I then added a cpp file and typed in the following code: #include <iostream> using namespace std; int main() { cout << "Hello world!\n"; return 0; } When I try to run the program by pressing "Start Debugging" (F5), a console window appears then I get a popup saying : "There is no source code available for the current location." I then have an option to "Show Disassembly". I can see my output in the console window if I click "Start Without Debugging" (Ctrl ...Show All
Visual Basic For - Next loop should wait for a button to be clicked
hey i am kind of new to visual basic and as yet its a lot of fun if anyone can help me with this problem, i'll really appreciate it, I am running windows xp sp2. Problem: At the beginning of a program the user enters the number of enteries he / she wants to input using a combobx I am trying to run a For - Next loop in order to get these multiple enteries into an array using a single textbox. The problem is that i want the user to click a button each time he completes a single entry. and then the for - next loop should continue How do i code this into the program hey thanks That does ...Show All
Visual C++ Linking error while using VS.NET2003
Hi I am using VS.NET 2003 to build a project. I get this linking error when I try to build a project . vc6-re300dm.lib(wide_posix_api.obj) : error LNK2019: unresolved external symbol "void __cdecl std::_Xlen(void)" ( _Xlen@std@@YAXXZ ) referenced in function "private: bool __thiscall std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::_Grow(unsigned int,bool)" ( _Grow@ $basic_string@GU $char_traits@G@std@@V $allocator@G@2@@std@@AAE_NI_N@Z ) I have specified this library file "vc6-re300dm.lib" by going through tools/option ...Show All
Visual Studio Can VS 2005 installed on Windows XP SP1
Hi, Is there any possibility of installing VS 2005 on Windows XP SP1 operating system. I read the prerequisites of installing VS 2005 from Adminreadme.htm file. The minimum requirement mentioned is Windows XP SP2. Any help is appreciated. Thanks Bhaskar ...Show All
