Alex Jankowski's Q&A profile
Visual C++ Intellisense seems to be crashing
Hello, I am using VC++ 2005 Express. I have a template function ToString: template<typename T> string ToString(const T& type) { stringstream strstrm; strstrm << type; string ret; strstrm >> ret; return ret; } Whenever I type "ToString(" VC always crashes. It seems like Intellisense is having trouble with it and I don' ...Show All
SQL Server PDF files with images get unexpectedly large in SQL Server 2000 Reporting Services
When using quite small JPEGS (~ 800 KB) in a report the exported PDF is a few megabytes of size. Am I missing something (e.g. some kind of compression) Can anyone give me a hint on this one Thanks, Neno There is a known bug in 2000 (which I know wasn't fixed in the SP2 beta -- don't know about SP2 RTM, though) in the PDF renderer -- It causes images of any type to be converted to bitmaps, then rendered. I bet this is what you're running i ...Show All
Visual Studio Performance issues after VS 2005 installation
The installation of VS 2005 Beta-2 went very smoothly. VS 2005 and VS 2003 work side-by-side just fine. However, a very negative side-effect is that when I open a file (from local hard drive) with the registered application (e.g. double-click in Windows Explorer) it takes about a minute before the application starts up. This notable difference started only after installing VS 2005. If I open the application first, there is no ...Show All
Visual C++ Poly-Threaded C++ Applications
I have a few programs that I am converting to be threaded. At present I have a couple of programs, computer chess engines, that are threaded and work fine with Microsoft's C++ compilers. When the SMP.H #define's detect _WIN32 || _WIN64 it calls up process.h functions but on other platforms it need to use a bit map in ASM to manage the threads properly. Other considerations include inter-process communications etc. If threads dont need t ...Show All
Windows Live Developer Forums And the winner is...
Within a few weeks, the winner of the Worlds best app contest will be anounced, so I think it's an interesting question to ask: Who (or which app) will win My guess: In the Games section I think somebody from the netherlands will win... There are a few good games (actualy a lot of good games, but these are the best in my opinion): - Hangman (very basic and simple, doesn't require a fast pc, everybody knows how to pla ...Show All
SQL Server Running Transact-SQL script file from within Visual Studio.net
My VB.net project needs to run a .sql file containing transact-sql codes. Is there a way to do this using a connection within VB.net Thanks, You will have to check for BATCH separator in the file which requires parsing the file. It is probably easier to just spawn a process like SQLCMD/OSQL and use it to execute the script. You can capture output, error code from the command-line utility and use it in the ...Show All
Visual Studio Express Editions Unable to insert or update into SQL2005Express from C# 2005
I have been going at this for several hours now and have run out of options. My end result is I want to add to a table... shouldn't be too hard. Here is some of my code (it's on a laptop right now not connected to the internet so I had to type it). class DataManager { private static SqlConnection myConnection; private static SqlDataAdapter workcenterAdapter; private st ...Show All
Visual C++ User Interface options
Good Afternoon- I've been developing a code in VC++ as part of my thesis work. So far it has been a console application, I've dumped all the data to a text file and then done analysis work in a spreadsheet. I'd like to tackle adding a user interface to control inputs, display data, etc. I'd appreciate some input on which way to go. As I understand it right now I have three options: 1. MFC 2. Windows Forms 3. an open source / freely available ...Show All
Game Technologies: DirectX, XNA, XACT, etc. disposing of video when using "RenderToTexture"
hi, i am using C#, feb2006 sdk and managed directx 1. i am exploring the Video class, especially the render to texture feature. setting the whole thing up was not much of a problem, except for the total lack of documentation of this class. anyways, after some trial and error i got it work quite nicely. the class seems well designed and - once you know how - is easy to use. my problem is, i haven't found a way of safely dispo ...Show All
Windows Forms Need help with a ListBox... SelectedIndex = -1 not working properly. Maybe i'm hallucinating.
I instanciate a dialog box like this, from my main form: /// <summary> /// Loads up the Brands Dialog Box /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void lnkBrand_LinkClicked( object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) { using (dlgBrand _dlg = new dlgBrand()) { _dlg.ShowDialog(); } } Then I have in my little dialog, ...Show All
.NET Development My WebPart verbs menu has disappeared!
I cannot get my webparts to display their verbs menus (minimise, close etc). I'm sure it's something obvious, but what is causing it Many thanks. Can I suggest you ask this question in the ASP Forums: http://forums.asp.net Regards, Kit ...Show All
.NET Development How do I get back the identity column value genarated by SQL server in my .NET code
How do I get the value of the identity column genarated by SQL server in my .NET code. Here is my code: str = "insert into TblAccount(Name) values(@Name)" pm = cm.Parameters.Add(New SqlParameter("Name", SqlDbType.Char)) pm.Value = "whatever" cm.sqlcommand=str cm.ExecuteNonQuery() In the database, my identity column is "AccountNumber", but I don t know how I can get it back from SQL sever (I hope I ...Show All
Windows Forms Cntl - A or Cntl-F in a multiline text box
Why can't I use either in a multiline text box. Cntl-A is most important for me, rather than having to click at the top and scroll down the whole text. dennist685 I only know visual basic. && and == don't show up in the documentation. I also don't know where to place the code. MouseDown Thanks for your answer. dennist685 edit. The example they give in the October msdn is Publi ...Show All
Smart Device Development Pocket Word
Hi everyone, i wonder if someone can help me with this. i have a C# application on Windows Mobile 2003, and i want to open a file using Pocket Word or Excel. Can anyone help please thanks Please see this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=275634&SiteID=1 ...Show All
Windows Forms Client Area
Why is it that with Windows.Forms controls, we only have access to the Size of the Client Area but not the Top, Left offset I've been trying to subclass a TextBox and add a Button on the Left and Right side of the text, but the ...Show All
