amoner's Q&A profile
Visual C++ lnk2019 with PathAppend and PathCombine
I hate to ask another "LNK2019" question, but this one has me stumped. As you may expect from the subject, I'm getting an LNK2019 error with PathAppend and PathCombine. Here is the error output (I removed the parameters from the function calls because they are extremely long and, I suspect, useless information): 1>WindowsMounter.obj : error LNK2019: unresolved external symbol __imp__PathCombineA@12 referenced in function "public: virtual void __thiscall uruz::WindowsMounter::run(...) 1>WindowsMounter.obj : error LNK2019: unresolved external symbol __imp__PathAppendA@8 referenced in function "public: virtual void __thiscall uruz::WindowsMounter::run(...) 1>C:\Uruz\UruzEngine\Test\Utility.exe : ...Show All
SQL Server how can attack database from sqlserver management studio express?
I have created a database named s_office,now i want add file data.MDF and log.LDF into it. .How can i do it Could you show me the script that attack file .MDF and .LDF into database.thankx http://msdn2.microsoft.com/en-us/library/ms179877.aspx ...Show All
Software Development for Windows Vista Persistence Services and DTC
I'm using a TransactionScope Activity that required me to add a Persistence Service to the runtime ( I understand this) However, when I add the SqlPersistence Service to my runtime, I started getting DTC errors. I'm running a WCF Service hitting the SqlPersistence DB on my local machine accessing data on a separate SQL Server box. Is it a requirement to have DTC enabled on my local machine and the SQL server Is this strictly because I don't have the my local SQL server and the network SQL Server linked Any help would be appreciated. Thanks! Hi, Both the persistence and whatever is done in the TransactionScopeActivity are done in the same transaction. Because they go to separate databases, even servers in this case, the transaction ...Show All
SharePoint Products and Technologies IE crashs when opening office doc from sharepoint 2003
Hi All, There is numerous reports (see links below) of IE crashing on vista when opening word or ppt from sharepoint 2003. This is also happening to me. Does anyone know how to fix this Thanks slyi http://forums.microsoft.com/TechNet/ShowPost.aspx PostID=1090561&SiteID=17 http://groups.google.com/group/microsoft.public.internetexplorer.general/browse_thread/thread/43f86639250505a2/b0ef5e5c7be556a3 lnk=st&q=sharepoint+ie7+crash&rnum=1&hl=en#b0ef5e5c7be556a3 Hi, I have the same problem but it is not just Office files which crash IE7. Opening any file (pdf, txt, etc) causes IE7 to error. Seems to have started in the last couple of days even though I haven't installed any up ...Show All
Visual Studio Visual Studio project templates are missing
Hi! My Visual Studio 2005 project templates have disappeared. I've already tried to run "msdev /installvstemplates", but they didn't appear. Any other suggestions TIA It was long time ago, but it should never be too late : Notice that all your project templates and item templates ( located in C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplates and in C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemsTemplates ) are zip files located under a subdir for the kind of item or project and then under a subdir for the language specification (1033 for English). .NET 3.0 are not put in those 1033 folders by default, just move them into th ...Show All
Windows Forms ChangeTheme
Hello, I'm currently develop an app that looks fine using Silver Colors on WinXp theme. How can i set the Silver aparence on WinXp theme . I'm using C# and some Win32 API features. I think that answer it's NO, but anyway i try to ask: Can I change only my app theme without modify the windows theme Any tips, comments, or suggestions are wellcome. Thanks. Hope this thread will give you some hints. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=620121&SiteID=1 ...Show All
Windows Forms How to display progress form as modal form
Hi, I am trying to use Backgroundworker, which is new in .net 2.0 Here is what I am trying to do.... I have a main form, in which I am filling data requested by a user. While getting the results , I want to display a modal dialog form with a progress bar in it. Once the main form's grid is filled with results close the progress form window. On click of GetResults button I have the following code BackgroundWorker bg = new BackgroundWorker (); bg.DoWork += delegate { GetRequestedData(txtbox.Text,records); }; bg.RunWorkerAsync( null ); ProgressForm pf = new ProgressForm (); pf.ShowDialog(); backgroundWorker1.RunWorkerCompleted += delegate { pf.Close(); }; With this approac ...Show All
Visual C# DateTime Difference on WinForm and WebForm!
I write a simply code to see the difference: this .label1.Text = DateTime .Now.ToString(); this .label1.Text += " " + System.Globalization. CultureInfo .CurrentCulture.ToString(); The output of WinForm is “ 28/11/2006 11:03:21 en-GB ”, while WebForm is “ 11/28/2006 11:02:55 AM en-US ”. Even I restart my computer, the difference is still on. Can you explain this difference Yes, I think your suggestion will help. But I want to know how to change the settings of computer to change the WebApp's default culture . From "Regional and Language Options", whatever kind of culturen I changed to, the WebApp confirm to "en-US" culture, only the WinFormApp's cult ...Show All
SQL Server A more consistant Web Report Viewer?
Is there another way of displaying reports online that will show the data exactly as it wil be printed A number of things have been causing me problems, such as the fact that the pagination controls do not show the same number of pages that actualy get printed. And some fields in the the report viewer do not line up with their column headers, but on the print outs they do. We used to use Crystal reports, and would like the report viewer to act in a similar manor to their ActiveX report viewer. Any help is greatly apprechiated. Many thanks Matt Hi Nathan, Thanks for your comments, but thats not exactly what i was after. I just had a thought though, there obvously is an activex control ...Show All
Windows Forms Can't Change culture in MonthCalendar on runtime ?
Hi, Is there any way to change the culture in the MonthCalendar control I have a program that allows a user to choose their language. Based on the choosen language, I want to calandar language to be reflected. I have try to set Thread .CurrentThread.CurrentCulture and Thread .CurrentThread.CurrentUICulture but unfortunately, it doesn't work. After playing with that, I have found that this control take the regional settings as the culture. CultureInfo .InstalledUICulture. How can I bypass the regional setting on my computer IE: Have the en-US culture in my operation system but is able to view the calendar in french/spanish language in exemple. It doesn't seem to be possible thanks. ...Show All
SQL Server Transaction question
I need to select items in Table1 whose column2 value is not 'Processed'. I use the following code to get this working. BEGIN TRAN INSERT INTO @Temp Select Column1 from Table1 WHERE Column2 <> 'Processed' UPDATE table1 SET Column2 = 'Processed' FROM table1 T1 JOIN @Temp Tmp on T1.Column1 = Tmp.Column1 SELECT Column1 FROM @Temp END TRAN Since the default transaction level is read commited, two queries to sproc returns identical results. If I change the transaction level to Repeatable read, this works fine, but the performance degrades. Is there any other alternative which is better than this approach Thanks Pravin As far as I know the TOP statement is supp ...Show All
Visual Studio Express Editions Combobox databinding -- almost there!
Hi I have a table similar to this: Type Name 1 Bob 2 Claire 3 Peter Type is the primary key. On a form I have a combo box that I want the user to pick a name. The value stored though needs to be the primary key, here's my question: In access you can create combo boxes that display both columns within a combo but when an item is selected it stores the first column only. How do I replicate this using Visual Basic 2005 - how do you guys do this If I populate the combo with the primary key only, it's difficult to use since the user doesn't know which [Name] belongs to which [type]. Your help is appreciated! Thank you very much for your help :-) This is exactly w ...Show All
Visual Studio Checked items on vb.net
when i checked a project in vb i got that check mark right next to the project's form, code...everything... How do i get rid of this check mark Thanks Are you asking how to run it from VSS Source safe is not what you use to build and run projects, for that you can use Visual Studio. Just open the project or solution in Visual Studio and hit F5. If you are asked to build the project first then hit yes. -Luke ...Show All
Visual Studio Tools for Office Outlook: MAPI fields versus User Properties
Hi, I want to improve an outlook addin which is using mapi fields (a lot) and this is generating abnormal behaviors in outlook, so now I'm in doubt to quit all use of mapi fields fo User Properties but I need some recomendatios or comments about using "mapi fields vs user properties" (or viceversa). Thanks, Mauricio. well, I just trying to do the same that I'm doing with .net 2003 but now I try to do it with VB6, here is the code (in red is my customized code): --------------------------------------------------------------------------------------------------------- Option Explicit Public FormDisplayed As Boolean Public VBInstance As VBIDE.VBE Dim mcbMenuCommandBar As Office.CommandBarContro ...Show All
Visual C# Hide Console Window in C# Console Application
Hi, How can I hide the console window in my Console Application project What worked for me was - Create a Windows Application in Visual Studio. Inside of the Program.cs instead of running a windows application/Form - instead just instantiate your class there. Normally after creating a Windows Application in VS your main method in the Program.cs file will look something like this: Application .EnableVisualStyles(); Application .SetCompatibleTextRenderingDefault( false ); Application .Run( new Form1()); I comment out that and in its place I put my class that I want to instantiate and run - like this: //Application.EnableVisualStyles(); //Application.S ...Show All
