massod's Q&A profile
Visual C++ accessing pointer to struct from another cpp
how do I access static sStruct *pStruct = NULL; contained in main.cpp from another cpp where main.h contains typedef struct sStruct { HWND hWnd; int iUpAxis; } sStruct ; right now I get error C2065: 'pCurView' : undeclared identifier on the line int iHandled = cFoo::MouseMove(pStruct, iFlags, PointX, PointY); in other.cpp Thanks -Greg Drop the static keyword so the linker can see the variable. Put extern aStruct *pStruct; in your header file or other cpp. ...Show All
Windows Forms how to make "About" form a cool flat one?
Hi, all... When I create the "About" windows form, there will always be "minimum", "maximum" and "Close" on the right top corner... I want to make the "About" Form just a flat picture with cool color and picture... and when user click on it, it will be closed. I see some this kind "about" in some application. I like it very much. How can I realize it Shall I design and create the flat or 3-D picture by myself and then pretend it to be the "About" form Then can I close it when user click on it Besides, may I add some music too Thanks a lot! Hi, the easiest way would be setting that form's FormBorderStyle property to None, BackgroundImage to th ...Show All
SQL Server Errors Deploying an SSIS package
Hi All, I hope someone can help becuase this problem is issue us several headaches. We are currently trying to deploy an SSIS package to a production server. The deployment goes fine, the package runs ok when executed manually. The issues start when we try and execute it under the SQL agent. Having gone back to the drawing board and spent much of the day reading various articles and applying the various options (especially those within the MS KB article 918760 ), we are still no closer to a resolution. The SSIS package was created under an Administrator, and the SQL agent runs under a different Domain Admin account. When we set up the Schedule to read from SQL Server or the SSIS Store the standard "Executed as user: D ...Show All
Visual Studio Team System TF31002: Unable to connect to this Team Foundation Server
We are getting the following error when trying to connect to TFS from a developer machine: TF31002: Unable to connect to this Team Foundation Server: tfsserver. Team Foundation Server Url: http://tfsserver:8080 . Possible reasons for failure include: - The Team Foundation Server name, port number or protocol is incorrect. - The Team Foundation Server is offline. - Password is expired or incorrect. For further information, contact the Team Foundation Server administrator. It works fine when connecting from the server. Jason It appears to have something to do with how directory security is defined for Team Foundation Server within IIS. If I enable both ...Show All
Visual Studio Express Editions Emails when registering
Gee it sure would be nice if the emails had the reg key in them so if some poor bloat kills his IE before he copy's the info down( reg key ) he wont have to uninstall and reinstall and re register... You do not have to uninstall/reinstall to re-register. Just go to Help->Register product... and you will redo the registration. You can do this until you fill in the registration code. Then it will tell you that it is already registered. ...Show All
Visual Studio Express Editions TableAdapter Query based on a form field
I'n new in VB 2005 Express and i want to do something like cascade listboxes (2 listboxes). The 1st listbox contain colour from a Colour Database Table with one 'id' The 2nd listbox contain car from a Car Database Table with a field called 'colour_id' that have de number from 'id's Colour Database Table. I think you see whaty i whant When i select on the 1st listbox one colour, the 2nd listbox is updated with all of the cars with the 'colour_id' from Car Database Tabe = 'id' from Colour Database Table ------> That's the easy part. The part with lots of problems is to build the Query from the designer way. I'm doing like this: 1. In the Car DataSet, I click: "New" - "Query" - "Use SQL statments" - "SQL ...Show All
.NET Development Who's using .Net?
I am just starting using VB.Net and loving it. But can anyone point to an example of an application created using .Net It seems as if Microsoft doesn't make many apps with it. I am trying to show coworkers some examples. Thanks, Chris ASP.NET is pretty much ready for prime-time, providing genuinely useful functionality, stablility, and real productivity enhancing features. imho, Windows forms isn't suitable for anything but internal and small application development. 2.0 makes some big improvements, but, without a 3rd party UI library, you're really not going to get too far. That's why you haven't seen large apps delivered on a Windows Forms platform yet (and probably never will). An exa ...Show All
Software Development for Windows Vista Does anybody know where I can find largeint.lib ?
Hi I have C++ Visual Studio 2005 and I can`t build my project becouse compiler call error: I can`t find largeint.lib I installed Microsoft Platform SDK R2 and I made XP32_DEBUG in BaseClasses of it (I work under windows xp 32-bit). I looked all resources for largeint.lib but it returned nothing. Please help me ! In the Project you are building, remove largeint.lib from Properties/Configuration Properties/Linker/Input/Additional Dependencies. The later Platform SDK's include VS2003/2005 project files. See: Microsoft Windows Server 2003 R2 Platform SDK or later. ...Show All
Visual Basic cannot access http://localhost
Dear all, I'm having an error using visual studio 2003 when creating web application. the web server reported the following error when attempting to create or open the web project located at the following url: " Http//localhost/wepapplication1" HTTP/1.1 500 server error I have installed .net 2003 after that IIS on windows XP prof. I found that i cannot access my http://localhost/ , how to solve this issue and how to access local host Thanks and regards, Hello- I have isntalled IIS, VS2003. When I click New Project, I get the following error: The Web server reported the following error when attempting to create or open the Web project located at the following UTL: http:/ ...Show All
Visual Basic Need to determine the first Monday of the Month
I need to determine the First Monday of the Month using VB.NET. I know that code select DATEADD(wk, DATEDIFF(wk,0, dateadd(dd,6-datepart(day,'2006-12-04'),'2006-12-04') ), 0) works nicely on SQL Server I tried to use the similar VB code but received funny result 1/07/0237 . I am guessing that value Date.MinValue (#12:00:00 AM#) screwed up everything. Here is my code Dim FirstMondayoftheMonth As Date = DateAdd(DateInterval.Weekday, DateDiff(DateInterval.Weekday, Date .MinValue, DateAdd(DateInterval.Day, 6 - DatePart(DateInterval.Day, Today()), Today())), Date .MinValue) Can somebody help me to fix this problem This here gives you the first day ...Show All
Visual Studio Express Editions database
hello, i have Northwind database and i work with Visual Studio 2005. I display data from database in windows application and now i want to save changes in database when i change data in windows aplication. i tried this but it doesn't work: private void svaeItemClic( object sender, EventArgs e) { try { DataSet changedData = northwindDataSet.Products.GetChanges(); if (changedData != null ) { int numRows = productsTableAdapter.Update(changedData); MessageBox .Show( "Database updated " + numRows + " rows successfuly" , "Success" ); northwindDataSet.Products.AcceptChanges(); } else { MessageBox .Show( "Nothing to save" , "No chan ...Show All
Windows Forms Updating project without changing DB
Please excuse me if this is a silly question but this is my first project with VB (VS 2005 Express Edition). The application uses SQL Server 2005 Express. Soon, I will be in a position to take a large amount of data from the end user of the project and put it into the database then deploy the application to his machine. This will be a long process as there is some data in spreadsheets and lots of data on the backs of envelopes etc! At this point he will begin to use the application and add/modify data on a regular basis. However, after a few weeks, he will return to me and say "Can you change this part There's a bug in that part etc." How can I then update the application and re-install it on his machine and mai ...Show All
SQL Server Error with Management studio - collation problem
I receive the following error when trying to right click / properties on a database in Management studio. I caught the sql causing the problem, and fixed it by adding explicit collation definitions. Can this be integrated into a service pack / hotfix (I cannot view and of my databases as the model database collation has been changed. This was done to protect against collation problems in the tempdb database) =================================== Cannot show requested dialog. =================================== Cannot show requested dialog. (SqlMgmt) ------------------------------ Program Location: at Microsoft.SqlServer.Management.SqlMgmt.DefaultLaunchFormHostedControlAllocator.AllocateDialog(XmlDocument initializationXml, IServiceProvider ...Show All
Windows Forms Textfield with "money" value from DB, shows 4 decimals. How to remove them?
I have a textfield which is bound to a database field of type Money. The problem is that it shows 4 decimal places. I don't want to show any decimals, and preferably round it instead of trimming. I'm fairly new to windows forms - are there any properties that lets me control this Or do i really have to manually program every field to round the value, and trim the decimals I find it pretty silly that it's displaying 4 decimals by default - even when it's 1,0000... 2 would be "ok", but 4... What currencies have 4 I found out that i could adjust control formatting in "Databindings -> Advanced". ...Show All
Visual Studio Locals Debug Window
Hello, Since short I the Locals - Debug - Window is empty. I cannot figure out what is the problem. When I run the solution, I cannot debug/verify the variables. Does someone have a clue what is going on It is happening with all my solutions. Thanks. Hi, I reinstalled the machine and problem resolved. I cannot figure out what caused this flaw. Thanks for reading and helping during this thread. ESTAN ...Show All
