Frédo's Q&A profile
Visual C++ pin_ptr and jagged arrays.
I can't seem to find any specific information on pinning jagged arrays. For example: void SomeMethod(array<array<Byte>^ >^ data) { // ... pin_ptr<Byte> pinnedPointer = &data[0][0]; //... } Does this have the effect of pinning the entire data object or only the array data[0] The docs for pin_ptr only specify that it pins the entire array; but array<array<Byte>^ >^ is an array of arrays. I read in ...Show All
SQL Server Walkthrough Failu "Creating a Mobile Application w/SQL Server"
I am attempting to go through the "Creating a Mobile Application with SQL Server" walkthrough found in the SQL Mobile Books Online help file. Towards the end of this document (under SQL Server Mobile Tasks), they show how to create a new subscription. Unfortunately, after step 10--when you are asked to click finish--I get the following error: TITLE: Microsoft SQL Server Management Studio ------------------------------ Failure to connect to ...Show All
Visual Studio Hooking into IVsDebugger
Does anyone have any information about this interface such as which service to connect or a sample program that I've overlooked I'm interested in attaching to the debugger in my extension for C#, and possibly VB.NET to intercept and process breakpoint hits, set them, remove them, and keep track of statistics. Is this possible in a managed add-in Hi Will, You can use SID_SVsShellDebugger service and hook u ...Show All
Visual Basic TextBox focus on form load
How to focus TextBox after form is shown I try with textbox.focus() in load, activated and visiblechanged event but with no success. Thanks buddy control.select() is working. The else case is a built in prob in .Net ...Show All
SQL Server What is the best way to compute the value of XQuery position()?
This issue arises from a current limitation in the usage of position() to within a predicate in SQL Server 2005 (if I interpreted the earlier discussion threads correctly). In my scenario, I need to shred a sequence of XML elements (actually, menu selections in a call); but need to include the position/sequence number for each element as well, when saving them to a relational table. After realizing (the hard way) that S ...Show All
Smart Device Development How do I deploy the 2.0 framework as part of the app?
I figured out how to create a CAB file and load that onto my treo 700w and run it. But now how do I add the 2.0 framework so my friend can install the program Or is it not done this way Will he be required to install the CF 2.0 himself before he can run my programs NETCF CABs are redistributable so you can include NETCF with your application and deploy it to device same way as your application CAB is deployed. Alternatively you can p ...Show All
Visual C# a bug in: ArrayList.Add()
It seems there is a bug in ArrayList.Add(); i have created a loop that adds differents array's (string[]) in ArrayList property. ok, let say i call my ArrayList "something" then this is what happens in my code: if i use: something.Add(Array1); then it adds it normally. if i use it two times: something.Add(Array1); Array1[1] = "another value" something.Add(Array1); then it adds it AND overwrites the old value, so both 'something[0]' and 'som ...Show All
Visual Basic Passing a structure with arrays of fixed length strings to a DLL
Hi, I need to be able to pass a structure to a DLL that has arrays of fields of fixed length in it. In old VB6 this could be done by having types with types type repeatingRecord field1 as string * 2 field2 as string * 5 end type type maintype field1 as string * 7 records(10) as repeatingRecord end type In .NET types become structures and fixed length strings no longer exist. However the attributes 'VBFixedString' and Marshal ...Show All
Visual C++ array of characters function question
the code below worked on dev c++. then i put the c code into visual studio and i get the following errors: error C2143: syntax error : missing ';' before '[' warning C4091: ' ' : ignored on left of 'char ' when no variable is declared error C2143: syntax error : missing ';' before 'type' error C2143: syntax error : missing ';' before 'type' error C2065: 'pASCII' : undeclared identifier error C2100: illegal indirection error C2100: illegal indir ...Show All
Visual Studio Tools for Office VSTO 2005 Word Bookmarks
On the client side I created a Word Document Project using "add the datasource to the project, add the bookmark controls and then databind the bookmark controls to the fields in the datasource" and "you should be able to simply drag and drop a field from the datasource to the document to create a bound bookmark control." (thanks to Ken Laws 24 June 2005). I used the DataSet Wizard to create a strongly typed dataset connected ...Show All
SQL Server ForEach from query
Hi All I'm sure this is a simple thing to do, but I'm new to SSIS and trying to catch up fast. I want to execute a query on the database which will give me a path and a filespec, say: c:\apps\testapp1 and fred*.csv No problems here. I then want to feed them into a ForEach loop and interate through all the files matching the filespec at that location. I can't figure this out at all. Thanks for you help in advance. FG ...Show All
Visual C++ help please
------ Build started: Project: <REMOVED>, Configuration: Debug Win32 ------ Compiling... <REMOVED>.cpp c:\documents and settings\<REMOVED>\my documents\visual studio 2005\projects\<REMOVED>\<REMOVED>\Form1.h(75) : error C2059: syntax error : '&' Build log was saved at <REMOVED>. <REMOVED> - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ...Show All
Visual Studio Team System Outlook Add-In Sample Code?
What is the status of the Outlook Add-in sample code for synchronizing TFS Work Item tasks and Outlook tasks Is the sample code in the Oct drop of the VS 2005 SDK Thanks Scott Is this Outlook Add-in the same thing as the Outlook Connector Pack as discussed in a chat last week Where you could create new work items by sending an email Thanks, ~slee ...Show All
Visual C++ VS and side-by-side installations of PSDK?
Hello all, I'm currently evaluating VS 2005 C++ (Express Edition) and I'm planning to install the new Platform SDK Windows Server 2003 SP1. However, I'm still running VS 6.0 on my computer which is still needed to build a number of old projects. On the PSDK download page however it says that side-by-side installations of the new and older PSDKs are not supported, which doesn't sound nice at all meaning, as I understand it,&nb ...Show All
Visual Basic Rotating an image or bitmap object
Hello, I'm looking to (through code) rotate an image or bitmap object. It has to be to any angle, too, not just 45 or 90 degree intervals. I HAVE code to do this, however, the centerpoint for rotation ends up being the top-left corner of the bitmap. I need it to rotate from the centre. Thanks in advance to anyone who can help. You need to do a translate transform by half the width and height of the bitmap, so that the point of rotation ...Show All
