Ramazan Acar's Q&A profile
Windows Forms Windows MessageBox: limit to number of lines?
Is there a limit to the number of lines that will show up on a single Message Box that is created from a call to the MessageBox() function If so, what is that limit, and what is the behavior if the limit is exceeded I think there is no limit until the limit of a string has been reached ... the problem being is the display where the messagebox will go off the screen if you try to fill it with loads of lines. How many lines are you thinking about displaying On a side note, remember MessageBox's are just for user notification purposes :-) ...Show All
Visual C++ VC2005 : Disable c++ exception in Dll application
Hy, I create a simple Dll application that use stl. I try to disable exception to optimize my application. First, I disable exception in project properties and I define "#define _HAS_EXCEPTIONS 0 " in my prefix include. But it doesn't link, I have this error : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::exception::_Raise(void)const " (__imp_ _Raise@exception@std@@QBEXXZ) referenced in function "protected: static void __cdecl std::vector<int,class std::allocator<int> >::_Xlen(void)" ( _Xlen@ $vector@HV $allocator@H@std@@@std@@KAXXZ) 1>Exception.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::exce ...Show All
Visual Studio Express Editions I can't get my add new database Source Function to work
I can't get my add new database Source Function to work. I get this error message:format of initialized string does not conform to specification starting at index 0 I enter the data source configuration wizard. I push the [NEW CONNECTION] button I change the data source from SQL to Access and then press [OK] button and a messagebox appears: format of initialized string does not conform to specification starting at index 0 The question was - is this database file a local access database file or is it residing on a remote machine / mapped drive. ...Show All
SQL Server HELP, error report, Setup Bootstrap\Log\SqlSetup0017.cab
I've installed SQL express eight times at least. The first time it went throug without warnings. Now, I'm getting this by simply wanting to open Northwinds or Pubs database to practice with. Path=c:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\SqlSetup0017.cab Thanks for you support everyone! Karen - SQL Server Edition Operating System Compatibility (Success) Messages SQL Server Edition Operating System Compatibility Check Passed - Minimum Hardware Requirement (Warning) Messages Minimum Hardware Requirement The current system does not meet the recommended hardware requirements for this SQL Server release. For detailed hardware and software requirements, see the readme f ...Show All
Windows Forms How to - Include Resource Files in Deployed Project - Plz Help
hello i m using VS 2003 and C# .. and i want to deploy my app using windows installer. i m using xml/xslt (resource files) in my application from the different folders. what i want is not to deploy my xml/xslt files as it is . i want them to be in a app EXE or dll as a resource files.. any pointers thanks Add your files to the project and set 'Buid Action' for them to 'Embedded Resource'. Then, at runtime, you can access these files using Assembly.GetManifestResourceStream method. ...Show All
SQL Server Not available in Object Explorer
Im new to Sql Server CE and I am following the procedure in books online to create a new database. Through Sql Server Management Studio, I have version 9.00.2047, books online says to click connect through Object Explorer and then select Sql Server Compact Edition . I dont see this option. I see Sql Server Mobile . Is it the same thing or am I missing something Thanks, Jesse SQL Server Mobile is the predecessor to SQL Server Compact Edition, ie version 3.0 and 3.1 To have the UI display "SQL Server Compact Edition", you must install SQL Server 2005 SP2. For more information on this, see the MS KB article: http://support.microsoft.com/ kbid=920700 (under the section: SQL Server 2005 ...Show All
.NET Development Need guidance for a client/server system (programmed using visual basic)
I'm programming a small client-server system that will be used in a small office of up to 10 computers on the same network. The server computer stores a database, and I'm writing a program to go on the server to be in charge of communicating with the database, and also communicating with the client programs installed on each other computer. The client programs will often request data from the database which the server software will send back to the client software. Also the server software will need to message the client software with certain events happening etc. So basically I need to program a communication system between a server program connected to several instances of a client program. Various messages will need to be passed back ...Show All
Software Development for Windows Vista How to grab all desktop content , not using GDI GetDC(NULL) & BitBtl?
Does anybody know, how to get all desktop (Screen) content - screen shot - without accessing GDI functions (like GetDC(NULL) & BitBtl), because know thay are having lack of perfomance, and not hardware accelerated. I wrote test application for comparsion - in WinXP, that grab screen via GetDC(NULL) & BitBlt for offscreen HDC, and have about ~400 per second grabbings with 1-2% CPU overload. And then try to run it on Vista. And how do you think Whay did I get About 7-9 grabbings and 80% CPU load. It's not the way I want to grab the screen anymore. I have tryed to know how do it with DirectX. But it seems there no way to get WDM's primary surface (Windows Desktop Manager), which do a lot of visual of Aero. I can get thumbnail ...Show All
Visual Studio Remote debugging VSTA
Is remote debugging of VSTA using Machine Debug Manager possible Answers to this an other questions are available from our vsta support web site, http://forums.summsoft.com/ , or http://blogs.summsoft.com/ Q: What about remote debugging top A: Presently, remote debugging is only supported in the Visual Studio Professional IDE. We have added remote debugging support (from the VSTA IDE) to the VSTA deve team's wish list for vNext! Since Machine Debug Manager is used to support debugging for the Microsoft Script Editor, I believe that it does not support assembly debugging. Regards, Gary Depue ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem with the default Windows Game in XNA
When I go in debug mode, what happens is that it fails, and the problem is caused by this: this.GameComponents.Add(this.graphics); If I remove, however, the program does not work as it should, as all it does is display a grey screen that doesn't refresh itself. What's wrong with it For hardware info, I'm using an Inspiron 1000 laptop, with a SiS M650 graphics card. I know it's not because I'm missing a file, because I have downloaded Visual C# and the XNA Game Studio Express. I'd be willing to bet that your graphics hardware doesn't meet the minimum: Q: Will the XNA Framework require D3D9 hardware A: A Direct3D 9.0 card, capable of supporting Shader Model 1.1, is the minimum. The recommended l ...Show All
Visual C++ Manifest problem
Hi, I have made an application under visual studio 2005 that use the SDL libraries. When I try to run this application in other pc where vs05 is not installed I receive an error. I read the msdn about these errors so I have used the Dependes.exe application to understand what kind of dll my application looking for. I copied the file msvcr80.dll how the dependes.exe wrote me but I got another error. Anybody knows why You can choose option 2 from that page (which will link to http://msdn2.microsoft.com/en-us/library/ms235291.aspx ). Follow everything from the section which starts from "Deploying Visual C++ library DLLs as private assemblies". ...Show All
Visual Basic Dataview table problem
I made a form and put a datagridview table in the form. I can open the form and see my data-I can click in a cell and change data But it doesnt save when I close the form I noticed that on the record selector that the save button is grey out. My setting for my data sources are save if newer, and my datasources are in the location that I specified. I can make another form and just put textboxes tied back to the same datasource and save with no problem. What did I do wrong Davids Learning I am not using code, I used drag and drop to build this form, I havent learned the code good enough to try this yet. Can this be set elsewhere other than code Or can you help me with where it goe ...Show All
Visual Studio Reference from csproj to vcproj fails to build using MSbuild
Hi, We are having an issue building a VS2005 solution using MSBuild. Our solution includes a c# project that has a project-to-project reference to a VC++ assembly project. The VC++ project has Common language runtime support set to None, but overridden on some of its source files to /clr. This builds fine within the IDE but fails to build using MSBuild from the command line. Looking at the MSBuild output, the /reference: for the VC++ assembly is missing from the CSC command line. If we enable CLR support at the project level everything builds fine, but this is not a practical option for us – there are hundreds of source files in these projects but only one or two that require the /clr switch. The link has a small example solution ...Show All
Windows Forms Clock component
I have to use a clock(analog) component on my form. Where can I find a clock component that look nice there isn't one in .NET. you would have to create one yourself. There is a timer even however which you can set an interval and it will tick on the interval set. You can then use this value to set the values or change the appearance of the UI control you have made to reflect the changes from the timer event ...Show All
.NET Development need help parsing a paragraph bounded by
i need a regular expression that matches a paragraph bounded by ^XA and ^XZ! sample string to parse: ^XA etc, etc.. ' <--- start of the paragraph ^FO etc, etc... ' line 2 ^FO etc, etc... ' line 3 and so on ^FWB ' Field separator ^FO etc, etc. ^FWN - field terminator ^FO etc, etc ' more fields and then finally... ^XZ ' <-- end of the paragraph ' new line that separates the same pattern above ^XA etc, etc --- --- ^XZ I have tried "\^\D\D.+" but didn't worked! For all those kind people out there, i need to store the match or matches into array! i'm a newbie so if you could provide the code and some explanation, that would ...Show All
