DavidC#2005's Q&A profile
Smart Device Development Problem with using POOM
Hi I have downloaded InTheHand.PocketOutlook, because I need to use POOM(Pocket Outlook Object Model) in my app. I am using vb to write my app, and I have added the reference to the project, but when I run the program I get this error message: Can't find PInvoke DLL 'PocketOutlook.dll' I don't know how to fix this problem, can someone please help me. Thanks, DD That means native 'PocketOutlook.dll' is missing/bad and you need to make sure you have it on device. It should come with InTheHand download. It might be what demo version only include x86 version which would only run on old x86 emulator. Please contact InTheHand for details. ...Show All
Visual Studio Team System Foreign Key Fields in wrong order
I imported a schema and it was giving me a bunch of errors with all my foreign keys that linked to one specific table. My foreign keys after the import looked something like this: ALTER TABLE [dbo].[CoilPickedLog] ADD CONSTRAINT [FK_CoilPickedLog_WorkOrderSequences] FOREIGN KEY ([SequenceNumber], [WorkOrderID]) REFERENCES [dbo].[WorkOrderSequences] ( [SequenceNumber], [WorkOrderID] ) It was giving me an error complaining that it couldn't find a candidate key that matched the referenced column list. I switched the order around to be [WorkOrderID], [SequenceNumber], and visual studio stopped giving me an error. Now my foreign key within my VS DB project looks like this: ALTER TABLE [dbo].[CoilPickedLog] ADD CON ...Show All
SQL Server Basic SQL: Multiple AND/OR nightmare in SELECT statement
This is more of a basic SQL question rather than anything specific for T-SQL, but I assume someone here can help me... I have a problem with properly combining a lot of AND and ORs in a SELECT statement in a stored procedure in order to get the desired results. The problem is that I want to have all results that fullfill all of the supplie d conditions: InstitutionCode, CollectionCode, ScientificName, Locality (unless they are null, hence 'coalesce') and the Parentid, that can be in one of eight columns. SELECT * FROM QueryView WHERE InstitutionCode = COALESCE(@museum, InstitutionCode) AND CollectionCode = COALESCE(@collection, CollectionCode) AND ScientificName LIKE '%' + @binomen + '%' AND Locality LIKE ' ...Show All
Windows Forms Dialog form is hidden sometimes
Hello all. In my application I have some form that I show modally. DialogForm frm = new DialogForm(); frm.ShowDialog(); So what's happening sometimes.... frm is "hiding" before the main applciation form. And it looks like that application is frozen (its because frm is active now but does not have focus). Is it a bug in .Net If you open that dialog from a method of your main form, pass the this pointer as parameter to ShowDialog. That makes it modal to your main app. -- SvenC ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Adding a simple shader to render a ModelMesh
I'm trying to figure out how to render with a shader instead of the default render style. I have quite a bit of experience with CG shaders from NVidia so I know the concepts, but when I'm trying to use XNA's HLSL, nothing is showing up. Here's what I'm doing. Any ideas what's wrong I'd like to note that I HAVE been following the help files, but the help files go into DrawIndexedPrimitive rather than mesh.Draw(), which I know isn't required and only helps to confuse me with the idea of applying a shader effect. On Load: shaderEffect = content.Load<Effect>("Content\\Shaders\\simple"); shaderEffect.CurrentTechnique = shaderEffect.Techniques["TransformTechnique"]; effectParam_wvp = shaderEffect.Pa ...Show All
Software Development for Windows Vista Windows WF and ASP.net
Hello, I am beginner to windows WF. I need a sample ASP.net which is completely controlled by workflow. I do need simple application wherein navigation to next page should be controlled by workflow using inbuilt controls available in windows workflow foundation. I have gone through some samples from Microsoft site, but it seems that they are not easy to understand. Thanks Sunil 2 great samples from Jon flanders Tom Lake I think the WF team is working on a better wf-asp.net integration in the next release of WF; take a look at this webcast for more infos. Enjoy. Serge ...Show All
SQL Server Couldn't connect to reports
Hi, I'm not able to browse through http://localhost/reports . When I'm trying to connect it gives me "Server Error in '/Reports' Application."At the same time I'm able to view Reportserver.At the same time I'm able to view Reportserver.(i.e)http://localhost/reportserver please can anyone suggest me some solution to this problem.. Server Error in '/Reports' Application. No we havn't migrated to any other domain. Thanks, Anandhi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problems with AddService()
Hi! I have been working with XNA for about 2 weeks now and I am new to the C# language. In my game I have a TextureManager and I wanted to give every class access to it. So I thought Game Services are a great idea, but it doesn't work right. In the Texturemanager-Class constructor I add it into the Services: Services.AddService(typeof(Texturemanager), this); Then I made an instance from the Texturemanager in my MainClass and after it I wanted to get the object back. ITexturemanager texturemanager = (ITexturemanager)Services.GetService(typeof(ITexturemanager)); But the texturemanager value is always null! Why doesn't it work right thx cya, Stefan Sorry, when I posted the thread I put away the name ...Show All
Visual Studio Express Editions wide characters in program
#include "stdafx.h" #include <iostream> #include <string> int main() { std::cout << "Please enter your first name: "; std::string name; std::cin >> name; std::cout << "Hello, " << name << "!" << std::endl; return 0; } wchar_t where do i put this in for wide characters like japanese thanx kk thanx for your reply helping me tons i'll have to read those thing that u have typed in for me may i ask you questions again whenever i need help with this ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Framerate decoupling
I'm trying to decouple the framerate from Update() so i can have more than 60 FPS. I saw this post with private void graphics_ModifyDevice(object sender, ModifyDeviceEventArgs e) { e.GraphicsDeviceInformation.PresentationParameters[0].PresentationInterval = PresentInterval.Immediate; } but couldnt get that to work... any help/ideas I know I'll have to use the ElapsedRealTime in my FPS code but not sure where to put it at. yeah, that worked.... now to slow down the counter! cause its updating around 10,000 times a second (no models or anything yet, want to get my test base perfect first) thanks man ...Show All
Windows Forms CPU usage
Hi, I am looking for a simple way to diaplay CPU usage and (if possible) memory usage on a windows form. Cameron. How know my proccess name Reading this genial thread, i'm monitoring the cpu and mem usage of my app, but i must put explicit name of my proccess in: private PerformanceCounter MEM = new PerformanceCounter ( "Proceso" , "Espacio de trabajo" , "MyApp" ); And when run like 'Release' runs Ok, but when run in 'Debug' crash because the proccess is called in another way. Regards. ...Show All
Visual Studio 2008 (Pre-release) Change backcolor of disabled control
How to change the backcolor of a disabled control in WPF application In the controlTemplatte if you have the following it will work <Trigger Property="IsEnabled" Value="false"> <Setter TargetName="Border" Property="Background" Value="Blue"/> <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource DisabledBorderBrush}" /> <Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/> </Trigger> ...Show All
Smart Device Development VB.net mobile 5.0 application Cab File...please help!!!
All of a sudden when i build my app, then I build my Cab File the Cab file itself is over 2mb...it used to be under 1...and it does not work has anyone else had this happen...is there a fix... cannot deploy new vrsions.... thanks in advance Mase Thanks for responding...I am going to re-phrse this issue... One minute i compile my app and the cab file is 768kb... then i go in and write a few lines f code, compile the app and the cab file is over 2mb...it is not copiling correctly...has any had this issue...thanks ...Show All
Microsoft ISV Community Center Forums MS Access User Defined Permissions
Hi there - im building a contact management system and require some help with coding. I have a table (tblusers) for users that contains their information e.g. user name , password and tick boxes that will hopefully allow them to edit certain levels within the hierarchy of the system e.g 'allowcompanyedit' tick box will allow users with that box ticked to create and edit company information, 'allowcontactedit' tickbox will allow users with that bx ticked to create and edit contact information etc etc. I have created a user login screen and added code to a command button that checks their credentials against what is held in the users table to see if they should be allowed to log in or not. I would like to add additional code that will also ...Show All
Visual Studio Maintaining data session state in the CrystalReportViewer
I finally got a .NET DLL datasource to work for my crystal report. Now I'm wondering if I'm fighting with an 'easier way, that may be already built into Crystal Reports. I've included two routines 1) Page Load - This routine checks the user's ID from Windows which is an NUID, it then takes that NUID to find that user in an Admin table, a Supervisor Table, to decide what type of data should be in the dataset of the report. The routines are nicely streamlined and are based off of stored procedures. Depending on the rank of the person's NUID, that person will see more 'Training status's of various employees. The idea is to have the page automatically display what is valid to that person when they open the page on our intranet. 2) ...Show All
