Montana Jones's Q&A profile
Visual Studio Express Editions Release troubles
Hi I have a strange problem. I have compiled and build my project, a small computer game, and it runs fine on my system. But as soon as someone else who doesn't have Visual C++ 2005 Express installed they can't run it. I really don't know how to solve this. First I tought that it was because I was building in debug mode, but now I have made a release build and it still doesn't work. It just says something like, "This application can not start because its configuration is invalid" I'm using a free game engine to develope my game, called GameX, from were I'm using a lib-file. This is my settings: Additional dependencies: GameXR5-VS2005-Release.lib Ignore specific libraries: libc.lib, libcmt.lib, atls.l ...Show All
SQL Server Auto URL Redirect
Hi,Does anyone know how to redirect the report to another URL automatically conditionally based on some checking, without user interaction with the report I am trying to perform validity checking on user's input value and redirect user to a centralise error page if the input value is invalid.Thanks,J Lim You can't do this using the standard parameter toolbar. You will need to code your own textbox for accepting user input for the parameter value and pass that to the report if is valid and redirect to the error page if not valid. ...Show All
Visual C++ Enum type with less than 4 bytes???
Hello guys, I'm interested in making enum as small as possible - I want to hold just few items (up to 5 or 10)...Reason is I'm sending it over network. I've found something on internet but without any proper declaration. Could you give me an example how to make such an enum(or similar structere if there is) Thanks, Peto To be portable, you could always wrap the enum in a way such as this # include < iostream > using namespace std; enum MyEnum { zero, one, two, three }; class MyTinyEnum { unsigned char val; public : MyTinyEnum(MyEnum inVal) : val(inVal) {} operator MyEnum() const { return static_cast <MyEnum>(val); } const My ...Show All
Visual Studio Express Editions auto yes security alert
in my program when i go to a site it comes up with security alert this is what it says "You are about yo be redirected to a connection that is notsecure. The information you are sending tot he current site might be retrandsmitted to a nonsecure. Do you wish to continue " Now in my help i say that to use the program yoiu need to hit yes and that you have to understand that it is not secure. so is there a way to just have it click yes all the time once the person is aware of it What you are asking is to change the behaviour of another program - Internet Explorer. Not only that, you want to bypass a very important security message. There are several problems with doing this, but ...Show All
.NET Development Parsing a Datetime column
I'm haveing a problem with parsing a datetime column while inserting rows with a table adapter here's the code: TKDataTableAdapters. TkVslSpecsTableAdapter adapterVslSpecs = new TKSIMSLookupMain.TKDataTableAdapters. TkVslSpecsTableAdapter (); int newVslSpecID = adapterVslSpecs.InsertQuery(txtSiteID.Text, DateTime .Parse(dtYearBuilt)) the error I get is: Argument '1': cannot convert from 'System.windows.forms.datetimepicker' to 'string' NOTE: the sql field has a datetime attribute can someone tell me the correct way to parse the actual field. I've tried several combinations of conversions to see if it will build or run in debug. Hey ColeBy...Seems like y ...Show All
SQL Server Unable to Open DTS Packages Anymore
Hi, I installed the dts designer component for 2005 so I could migrate over some 2000 packages and was able to successfully open and run dts packages under 2005. Then all of a sudden I get this error msg and can't open them, migrate them, export them, etc: "here were errors loading the package "MyPackageName": [DNETLIB][ConnectionOpen (Invalid Instance()).] Invalid connection. (Microsoft.SqlServer.DtsObjectExporerUI)" That is not a typo, it actually says "here were errors..." instead of "There were errors..." I've tried the obvious, repair the dts designer component and rebooting, no luck. Anybody seen this Hope this is the right group to post to... Thx ...Show All
Software Development for Windows Vista Question about submission
Hello, I have a question about the application submission. We provide our customers with the same products (online gambling products – casino, bingo and poker) but their name and content (games available etc) varies. We’ve been testing our applications (test apps) including all the current content we offer. Can our customers (software licensees) advertise the logo if we have created the submission for lets say “Test Casino” We are targeting "Works with Vista" logo. Does it mean that we should create submissions for each client we give out to our licensees (there are over 100 of them) From technical point of view the .exe file is all the same for all of the clients. It's task is just ...Show All
Audio and Video Development Programatically setting the default playback device (and recording device)
Under Vista is there a way to set the default playback device programatically I've searched through the APIs but I'm not seeing it. For example, there is a method IMMDeviceEnumerator::GetDefaultAudioEndpoint(), but there is no corresponding IMMDeviceEnumerator::SetDefaultAudioEndpoint(). Can I do this through the endpoint properties Thanks for the info, Larry. I think we cross-posted because I didn't see your post when I started my last reponse. It's true there wasn't previously an api to change the default device, but the OS did not prevent us from setting our device's audio path (under XP, we can control the recording source by setting the value of a Mux control). Under Vista we can set the input li ...Show All
Visual FoxPro Cursor adapter problem
I create cursor adapter with data source type = native, set path to database, in data acces tab I select all fields in table and set buffer mode override = optimistic table buffering, in tab auto-update i set: auto update and update all fields. After that i drag and drop cursor in form and make grid. In properties on cursor i set: AllowDelete = .T., AllowUpdate = .T., AllowInsert = .T. but when i run form i can update only grid, table in database isnt updated . When i mystake ...Show All
Visual C# Math: Round up number. eg 1234 / 50 = 6
I have a dataGrid and i wish to produce page buttons for next and back. Therfore i need to know how many pages i will need to for my data Eg, i have 1234 rows of data and each page will contain 50 rows. So 1234 / 50 = 24.68. So I need 25 pages How do i round up a number so 1234 / 50 = 25 . Thanks. Paul I worked it out. int totalPages = 37 /6; int remainder = 37 % 6; if (remainder > 0) totalPages++; ...Show All
SQL Server Cannot transfer/copy database in one step like I could with 2000.
Hi, I would like to know if there will every be a clean way to transfer a database from a remote server to a local server (and back again). I've tried several different approaches, but they all currently have bugs/problems. I've looked into database publishing wizard - but this creates a huge script that takes 10x longer to run than the old DTS transfer. I've tried copying data, and objects separate, but this requires multiple steps, using DTS this was all done in one step. I've tried using SSIS Transfer SQL Objects, but the defaults are not created, using DTS, the ENTIRE database was transfered, which is what I want. I've tried using SSIS Transfer Database, but even when I select "Online" mode, I get an error aski ...Show All
Visual Basic Cannot create an Excel Spreadsheet from code, please help!
Hello, Im using VB.net in visual studio 2005. I need to create an Excel spreadsheet from the results of a sql query. I am going to try and do this using the Excel Com object and create a workbook, the use ADO to add a query to the QueryTables collection off of the worksheet. First all, if this seems completely wrong or a backwards attempt please correct me. I'm not sure this is the best way to accomplish this task, so any suggestions would be great. Next, I can't compile my code because after I add a reference to my project to Interop.Excel.dll (Microsoft Excel 10.0 Object Library), I get the following error when building: "Interop.Microsoft.Office.Core.dll must be strong signed in order to be marked as a prerequisite." ...Show All
Visual Studio 2008 (Pre-release) LINQ to SQL Feature Request: Automatic generation of temporary Stored Procedures based on LINQ to SQL statements
Hi, I would like to see a feature in LINQ to SQL, where we can group a set of LINQ to SQL statements into an object, which could be converted into a code by compiler that creates a temporary stored procedure in the target database. This way we could run a single or set of LINQ to SQL statements as stored procedures and get the benefits of stored procedures like eliminating round tripping to database, pre-compiled queries, etc. At the same time we will not be dealing with permenant stored procedures. This technique will have all the benefits of writing stored procedures in C# and being executed inside database, which is a perfect world when compared to straight LINQ to SQL queries and TSQL based stored pr ...Show All
SQL Server Receive error "Unable to get the window handle for the 'ActionsAwarePivotTable' control." when trying to Browse Cube
I'm working through the SQL Server 2005 Analysis Services tutorial. Having just built my first cube, I'm instructed to open the cube in the Visual Studio cube designer and click browse to browse through my new cube. But when I do this I get the following error: =================================== Unable to get the window handle for the 'ActionsAwarePivotTable' control. Windowless ActiveX controls are not supported. (Microsoft Visual Studio) ------------------------------ Program Location: at System.Windows.Forms.AxHost.EnsureWindowPresent() at System.Windows.Forms.AxHost.InPlaceActivate() at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state) at System.Windows.Forms.AxHost.CreateHandle() at System.Windows.Forms.Control ...Show All
Visual Studio Team System TF14043: An error occurred computing the delta. Not enough storage is available to process this command
We're attempting to migrate a fairly sizeable SoruceSafe database into a dual-tier TFS server configuration using VSSConverter. After running analyze.exe, VSSConverter Analyze, then half-way through VSSConverter Migrate we start seeing errors in the EventLog. The app-tier server had been running for about 3 weeks, so we've restarted it and are starting a fresh VSSConverter Migrate. Searching for the win32 error "Not enough storage space is available" seems to indicate that it's run out of memory. However this is a Dual Xeon hyper-threaded box with 3.5Gb of memory and plenty of free disk space. The 2.0 Framework machine.config has <processModel autoConfig="true" /> Can you provide any clues as to wha ...Show All
