Spenceee's Q&A profile
Visual C++ How to use CRect in DLL
I have created a DLL using VS2005 and would like to use CRect and NormalizeRect() but I keep getting a unresolved external link error. I am just learning so it is probably something simple. Do you have any suggestions Thanks Here is the H and CPP files H #ifdef CLIPBOARDHELPER_EXPORTS #define CLIPBOARDHELPER_API __declspec ( dllexport ) #else #define CLIPBOARDHELPER_API __declspec ( dllimport ) #endif #include "atltypes.h" namespace ClipbrdHelper { // This class is exported from the ClipboardHelper.dll class CLIPBOARDHELPER_API CClipboardHelper { public : CClipboardHelper( void ); // TODO: add your methods here. }; extern CLIPBOARDHELPER_API int nClipboardH ...Show All
Software Development for Windows Vista AddBranch does not work
I have a custom activity derived from CompositeActivity that behaves similar to an IfElseActivity. I have written the following code to add a new branch to my composite activity (as a new branch can be added to an IfElseActivity): ISelectionService selectionService = GetService( typeof ( ISelectionService )) as ISelectionService ; if (selectionService != null ) { if (selectionService.PrimarySelection is ActivityLibrary. OrActivity ) { OrActivity orActivity = ( OrActivity ) selectionService.PrimarySelection; orActivity.Activities.Add( new OrBranchActivity ()); } } In this co ...Show All
SQL Server Any help on this SMO request?
My evaluation copy ran-out and I uninstlaled the previous and installed anothrer evaluation edition. The installation was successful. I created a SSIS package importing a tale from Oracle 10G XE to the SQL 2005 on my machine. I saved the package on the server. The SSIS service is working but when I try to refresh the node, I get this message. The help linl leads to no where: -------------------------------------- TITLE: Microsoft SQL Server Management Studio ------------------------------ Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&LinkId=20476 ------------------------------ ADDITIONAL INFORMATION: Login timeout e ...Show All
Visual Studio Tools for Office Preview controls to support Word XML
I am creating a Word 2007 add-in for storing parts of a document (kind of like autotext but I am capturing the .XML property of the selected range), and would like to be able to display a Preview of the selected text (including formats). Is there a Windows form control or ActiveX control that will allow me to display the xml (along with any formatting applied, so it appears like it would when inserted into the Word document) Basically, I guess I am looking for an Word/XML version of a Richtextbox control. Even better, is there any way to emulate the functionality of the little "popup" previews you get when you use some of Word 2007's features, such as Multilevel List numbering (i.e., little box pops out and shows you a previe ...Show All
Visual Basic change the size of text in a rich text box
hi, i have a combo box with two items in. They are 12 and 48. I want it so that when i click the 12 one, the font size in my textbox goes down to point 12, and when i click 48, the size goes to 48. ive got: Private Sub sizecombo_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sizecombo.SelectedIndexChanged If (sizecombo.Text = "12") Then page.Font.Size = sizecombo.Text End If End Sub it says the property font.size of page.text is read only. Please help me! Ive tried... and failed Thanks, James. You cannot modify the existing font. You have to create a new one with the size you want. Try this: Private Sub sizecombo_SelectedIndexChanged( ByVal sender As System.Object, B ...Show All
Visual Studio IDE Menu Duplication
I have just installed Visual Studio, and whenever I launch it, the menus and the items in them are duplicated. Another copy of them is made whenever I launch VS. Restarting my computer or VS doesn't fix the problem. Here is a screenshot: http://www.rightflux.com/menu_dupes.jpg I apologize if this is the wrong place to post this, let me know where it should go if this is incorrect. Just wanted to chime in that I've had this problem quite a bit myself in VS 2005. Quite a pain. Microtan's solution of deleting everyting in C:\Documents and Settings\All Users\Application Data\Microsoft\visualstudio\7.1 or 8.0\ worked, but I've had the problem come back before. Would be good to see this resolved. -L ...Show All
Visual Studio Problem with sandcastle config file
hii there.. i just installed the new version of sandcastle (november) and right now it won't work anymore even when i try it from the command line.. there is an error message when im using the buildassembler program, it said that it can't find the syntaxgenerators.dll and looking at the sandcastle directory there no such file. Can someone give me an example of the config file for the new version.. thanks hi, the syntaxgenerator.dll was renamed to SyntaxComponents.dll. Kind regards, Stephan Smetsers ...Show All
Visual Studio Use a property-value within an ItemGroup
Hi I'm new in MSBuild so forgive me if when I'm totally wrong... I have an ItemGroup like <ItemGroup> <MyItem Include="Test"> <Meta>$(MyProperty)</Meta> </MyItem> </ItemGroup> The thing is, when I access like %(MyItem.Meta) it's always empty, even the MyProperty-Property has a value. How can I do something like this Thanks Dani Hi, The problem with your scenario is that Properties & Items are created before any targets execute. So that means you're creating the MyItem when MyProperty actually is empty. In this scenario you can use the CreateItem task to create the item after you've extracted the value for MyProperty . Theres an example in the Create ...Show All
SQL Server convert getdate() to string dd-mm-yyyy
I would like to convert getdate() value to string of dd-mm-yyyy format in SSIS... how can I achieve this Mahesh, Thanks for posting that! I would actually rather they give us the ability to build user defined functions rather than adding a plethora of new out-of-the-box functions. I have added a comment to that end. Regards -Jamie ...Show All
Software Development for Windows Vista Windows Platform SDK SP1
Hi, I had installed the Windows Platform SDK SP1 on Windows Vista Beta2. The installation completed successfully, but failed to install the x86 compilers. When installed on Windows XP, it installs c:\program files\microsoft platform\sdk\bin\cl.exe ; but when installed on Vista, no such file is created. Is there something I'm missing in here Thanks in advance for all the replies. Thanks and Regards, Ravindra Rajaram. Hi Ravindra: Rather than attempt to solve that issue for you, I would suggest that you use the Windows SDK Beta 2 SDK for a number of reasons. It has all the content that your SP1 SDK has, but it has some significant improvements. The compilers that were in the SP1 SDK are an earlier versi ...Show All
Visual Studio Express Editions displaying database details customly
im not sure if any of you have ever seen the championship manager type games, they display the players in a nice clean way (without the grid etc) is there a way to do this in vb or is it pushing it a bit too far is there any source code for me to get my head around i can do pretty much most things, i just need a starter. thank you very much.... dwoodall22@hotmail.com ...Show All
Visual C++ how to create object from LPDISPATCH
Dear all, I have an ocx. There are 2 methods: long CVsTelComSECtrl::GetType() { return 1; } LPDISPATCH CTelCtrl::Fax() { m_pcFax = new CFax; m_lpFax = m_pcFax->GetIDispatch(NULL); m_lpFax->AddRef(); return m_lpFax; } When I create an application, insert this ocx into application. I could use the method GetType() from this ocx CTelCtrl m_cTel; long lType = m_cTel.GetType(); //Works OK But I cannot use Fax(). How can I create a object with CFax type from this LPDISPATCH. Please help me, Tuan Tuan Le wrote: Thank you very much. In the last sentence, you mean I should add one more method which returns CFax* in OCX Not OCX only when you want to use in the same module, wh ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Uhhh
Uhhh, for some reason, a double thread-post has occured... So to make use of this, I have a question(s). When is the official release date of XNA Will it work with the Proffesional versions (the non-free ones) of Visual Studio Because I have that, and would prefer to use it's extra features over the free C# Express compiler. Uhhh, and for anyone with Xbox 360's, when will the XNA Game Studio Express be availabel in the market place At release, XNA Game Studio Express will only work with Visual C# Express. To better understand why, you can read this post on the XNA Team Blog. If you have an Xbox 360, you will be able to purchase the Creator's Club subscription through Marketplace and download o ...Show All
SQL Server reporting services connection error
I think i've tried everything. I have sql server installed on my machine and vs.net as well. I have the report server on another machine. I've made reports in vs.net and deployed them and they show up in the report manager but when i go to view i get the error: An error has occurred during report processing. (rsProcessingAborted) Cannot create a connection to data source 'SANDO'. (rsErrorOpeningConnection) SQL Server does not exist or access denied. what sort of connection type should i use and can someone tel lme the steps to get this to work right any help would be appreciated thanks so much On the report page (where you see the error), there should be a ""Properties" tab. Click that and a ...Show All
Visual C# How to load an xml file that is in same project?
Hey guys, I am new to winforms so please forgive me. I am trying to write to an xml file that I created. The file is in the same project (in the root level of the project, not hidden away in sub folders). However, it bombs out when it tries to find the xml file: Here's the error: {System.IO.FileNotFoundException: Could not find file 'S:\source\cs\sTopGun\CSharp\sBriefcase\BriefcaseSyncNotifier\bin\Debug\SyncSettings.xml Here's my code so far: DataSet xmlDataSet = new DataSet(); StreamReader myStreamReader = new StreamReader("SyncSettings.xml"); xmlDataSet.ReadXml(myStreamReader); myStreamReader.Close(); Thanks for the help!!! Hello and thanks for replying!! I ...Show All
