enric vives's Q&A profile
Smart Device Development LIBCMTD.pdb linker warning + "RTTI gotcha" post SP1
Hello, After installing VS2005 Service Pack 1, the linker started to warn me about not being able to find "libbmtd.pdb". Here are two of those warnings... (I get these warnings with ".exe" and ".lib" projects, but not with every project that I have). Linking... Creating library Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug/<PROJECTNAME>.lib and object Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug/<PROJECTNAME>.exp LIBCMTD.lib(gshandlereh.obj) : warning LNK4099: PDB 'libbmtd.pdb' was not found with 'D:\Program Files\Microsoft Visual Studio 8\VC\ce\lib\ARMV4I\LIBCMTD.lib' or at 'f:\<PROJECTDIRECTORY>\Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug\libbmtd.pdb'; linking object ...Show All
SQL Server Another WTF for MS - Row Count Error
I try to get a Row Count from data flow - and get Error: [Row Count [724]] Error: The variable "User::COUNT_NEWIMGS" specified by VariableName property is not a valid variable. Need a valid variable name to write to. I tried setting COUNT_NEWIMGS on Package Level, on Data Flow level (Int32 datatype) i tried specifying variable as "COUNT_NEWIMGS", "User::COUNT_NEWIMGS", "@[COUNT_NEWIMGS]" - still the same error And then when I'm ready to crash my keyboard (again) - I found on another forum that Row Count doesnt even update that variable until the dft is complete. WTF!! !! Jamie Thomson wrote: Well of course it doesn't. If you want to know how many rows are in a data path you have to wait until all the rows have gone throug ...Show All
SharePoint Products and Technologies How do I add a "link to document" item to a list programmatically?
I currently have the following code: . . . SPListItem newContract = contractList.Items.Add(); //contractList is an existing list string url = BuildUrl(contract, docLocation); // Builds the string to set to the URL for the item newContract["URL"] = url; newContract["Name"] = contract.ContractName; newContract.Update(); Guid contractGUID = newContract.UniqueId; _siteCollection.WorkflowManager.StartWorkflow(contractList.GetItemByUniqueId(contractGUID), assoc, string.Empty); . . . If I run the code above through sharepoint (currently I start a workflow on the "Shared Documents" document library which calls a method containing this code), then I get the following exception: System.ArgumentNullExcep ...Show All
SQL Server Restoration of publication database backup
When I tried to restore backup of publication database, time taken for restoration is too long [ 4 hours]. The actual database restore takes only 20 minutes but the stored procedures used for cleanup replication takes the remaining time. Is the issue related to my environment or the cleanup replication stored procedure Sound like there isn't problem with the restore. If the cleanup (which is needed to ensure consistency) takes a long time, you might want to check to see if there is locking/blocking that can be avoided. Please search msdn for the kb on how to avoid blocking/deadlock/etc. ...Show All
Visual Studio How to get Razzle?
I am working on WDM driver and now using WDK RC2 got from Windows Connect. I suffer a problem when I use prefast test to check my driver code. From the feedback of MS, it has to use Razzle Window to get some more debug information. But Razzle seems an internal debug tools and is not available to the public. Does anyone know how to get it Maggie, Razzle is indeed an internal tool. This forum really isn't the right place toa ssist with WDK issues. I would suggest going back to the person who gave you the original feedback to use Razzle and ask them what the alternative way to get debug information is. Neil ...Show All
Visual C++ How do you create a pointer to class funcitons (not members)?
Hey, I was jsut wondering, how do you create a pointer to a function that is a member of a class Note that I don't want to make a pointer to member, I just want to be able to do something like this: class ClassA { public: void SayHello() { MessageBox(0, "Hello", "", 0); } }; int main() { ClassA a; void (*ptr)() = a.SayHello; // this would be how i would suspect it to be done ptr(); } How do I acomplish this Yeah, this is cool. But it is still not what I am looking for. Ok, here's a good example. Say I have a class called CWnd, and this managed a window. It also manages creation, registration of the window, and the wnd proc. I can't, however, do this: Class CWnd { public: voi ...Show All
Visual C++ Sharing global data between app & dll
I am writing an application which serves as a host/client shell for a selected game type. The application stores and deals with all of the networking data and object lists. A DLL stores all of the game specific windows and data. I am trying to write this app to work for a number of different game types. When the user starts the app, he is given a choice of which game type he wants to host/join. A DLL is loaded into the app based on which game type he selected. This DLL has rules and windows specific only to the selected game type. The problem I am having is this: I have some global data being loaded and initiated from withing the app.exe source code. In this data are things like network sockets, CArchives, CSocketFiles, CObLists, ...Show All
.NET Development ASYNC XML calls via a C# Class?
I've read all about how to make async XML calls via a webpage with the async="true" page directive. But, what I am trying to do is make the same type of async calls via a class that the page calls; or another web service calls. Any clues or pointers on how to perform this Regards, Joe I don't think the XML parsing APIs in .NET directly support asynchronous reading with a setting. HttpWebRequest / HttpWebResponse however allow you to make asynchronous requests and you can then feed the response stream you get to an XML parsing API. ...Show All
Software Development for Windows Vista Vista desktop search preview?
In the preview pane for desktop search I see metadata about the item selected but not a preview of the content itself. For emails/docs I should see the actual item contents. Without this functionality I'm forced to install some other desktop search tool; X1, Copernic, Google, etc. These show content not just metadata. Am I missing something You can open a "preview pane" that lets you see the contents of the selected item. Click the Organize button, then Layout, then Preview Pane. ...Show All
Visual Studio 2008 (Pre-release) Schema aware XLinq
I managed to get some time to read the Linq project overview and play around a bit more. I had some thoughts on how Xml Schema and Xlinq could work well together based on one or two examples i found in the document. I've no idea whether this could happen, but in the word of deferred query evaluation anything is possible :) Consider this example within the document : IEnumerable<Person> persons = from e in x.Descendants("Person") select new Person { Name = e.Value, Age = (int )e.Attribute("Age") 21 }; It would be nicer for me to have previously done this: < xml version="1.0" encoding="utf-8" > <xs:schema id="XMLSchema1" elementFormDefault="qua ...Show All
Windows Forms Custom title bar of the Form
Hello, I want to customize look of the title bar. In a matter of fact i need to add bitmap images to the left and right ends of the title which heights are not equal. What are the "good"/correct/efficient way to do it Thank you. I read this article. The problem here is that i have to redraw my custom image over the menu strip. I did not find any place defining the order and rules of the menu strip drawing. ...Show All
.NET Development What components end up in the compiled EXE ?
If I have a program that references 3 dll's that I made, is there any indication of those DLL's in the final, single, EXE after compilation I want to be able to find out what components make up a RUNNING exe program, but if all that information disappears on compilation, I won't be able to find out. Any ideas dll means dynamic link library. Because it is loaded from a different file inside an exe at runtime. What you're talking about is static linking and has nothing to do with .NET. ...Show All
Visual Basic application with self contained db
I wrote a vb.net application that uses sql server to store and retrive data. I want to mody this app so that it can have a self-contained db with no external db required. I don't know how to do this, but I know it can be done, can anyone steer my in the right direction. You might also be talking about an "embedded" DB, in which case look at MySQL (www.mysql.com) which does provide an embedded interface that compiles into your code and does not then require an external DB engine. ...Show All
Visual Studio High Kernel CPU usage when debugging under vista
I upgraded to windows vista rtm on the 19th of January. I ran into issues very quickly while trying to debug my WinForms application. Essentially if i launch the process from within visual studio, i get an extremely high number of context switches per second and this consumes the kernel cpu time, causing the debugger to run incredibly slowly. I posted this information to connect on the 19th and today it was closed and marked as Resolved (wont fix) with no indication why. This certainly doesnt help me, as I need to resolve the issue, even if it means upgrading my machine. The issue is here: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=252882 Can anyone help me with this I really just need to k ...Show All
SQL Server Problems connection to SSAS
I just installed 2005 and have an instance of Enterprise on my local machine. My SSAS service appears to be working properly in Services. However, whenever I try to deploy a cube (simple one from tutorial) or try to connect from Management Console, I get rejected. The error message is: No connection could be made because the target machine actively refused it (System). I've tried about everything I can think of and can't get past this. Any guidance would be greatly appreciated. ...Show All
