Software Development Network Logo
  • Windows Vista
  • SharePoint Products
  • Smart Devicet
  • Visual Studio
  • Microsoft ISV
  • Game Technologies
  • VS Team System
  • Audio and Video
  • Visual C#
  • Visual C++
  • .NET Development
  • Windows Forms
  • Visual Basic
  • Visual FoxPro
  • SQL Server

Software Development Network >> Mohammad Mir mostafa's Q&A profile

Mohammad Mir mostafa

Member List

vkan
J. Clark
CharlieRussell
Sumit_Dagar_8eba6d
Leed3
Peter10
seco
readme55555
vbadict
jerfoo
stanjo
BeguiledFoil
nycoolguy60
Mikkel Haugstrup Jensen
pino69
Chips_in
HugoC
Punch
GrandpaB
Dave Midgley
Only Title

Mohammad Mir mostafa's Q&A profile

  • Visual Studio Team System Prefast: Bogus C6001, hiding _VC_NODEFAULTLIB

    I've run cl /analyze over a fairly small project (just some 30Kloc) and seeing all kinds of issues. That's the Vista Beta2 Platform SDK compiler, but it looks like it's just the VS8 gold version. Anyway, would someone care to explain why C6001 complains on some very trivial code like struct X {char x[2];}; X foo() { X x_; x_.x[0]=1;x_.x[1]=1; return x_; } c:\scratch\u.cpp(7) : warning C6001: Using uninitialized memory 'x_': Lines: 5, 6, 7 or # include <algorithm> # include <cstdio> int main() { const char some_string[] = { 'S', 'n', 'o', 'o', 'p', 'y' }; std::for_each( some_string, 1[&some_string], putchar); // index out of range std::for_each( some_string, some_string + sizeof(some_string), putchar); / ...Show All

  • SharePoint Products and Technologies WSS3 URL Error

    Hi, I have two WSS3 sites running on a single server, One on port 80 works ok 'ish http://portal.xxxx.co.uk/ (search broken and wont work whatever fix i try, seperate issue to be raised) The other one on port 33792, this is the site with issues. The basic problem is i can not create anything using; site actions - create. I can add new content to the default document library The page to create the new item appears, I enter all the info, press the create button and the site attempts to create the page at http://development.xxx.co.uk:33792/ ..... Nowhere in creating the site did I set a URL including the port, alternate access mappings in the Sharepoint admin do not show the port, however the site information under site s ...Show All

  • SQL Server asp.net configuration tool

    I deployed a web site, and converted SQL Server Express to a single SQL Server 2005 database. I created all of the tables required for memberships and roles with aspnet_regsql.exe. Real simple question - how can I populate the membership and role tables out on the server When I attach VWD to it, the ASP.NET Configuration tool is gone. How do you maintain memberships and roles without the tool Thanks for any help you will share :) It's been a long journey but I am finally here! Hi mike, You helped me SO MUCH already on other questions -- xoxo I'll buy you a beer if you are in redmond and when I get this one figured out. Are you in ck ...Show All

  • Windows Live Developer Forums pushpin "collision checking"

    I don't think my "collision checking" function is working. Im passing in the locations (VELatLong objects) of 2 pushpins. Also included in the function are two constants: "pin_width" and "pin_height" which are the width and height of the pins. This appears to always return false. Any help would be appreciated. Also, because I dont know the registration point of the pin, I'm assuming the top left corner is the registration point. function collisionCheck(a, b) { a_xy = map.LatLongToPixel(a); b_xy = map.LatLongToPixel(b); a_x1 = a.Latitude; a_x2 = map.PixelToLatLong(a_xy.x+pin_width,a_xy.y).Latitude; a_y1 = a.Latitude; a_y2 = map.PixelToLatLong(a_xy.x+pin_width,a_xy.y+pin_height).Longitude; b_x1 = b ...Show All

  • .NET Development Errors creating new data source

    I've been writing OOP code for 10+ years, and am now excited to learn C#. To help me get going, I recently installed Visual Studio 2005 b2, and have been studying ADO.NET & working through some MS Access projects. I've followed several tutorials on the Data Source Config Wizard, searched MSDN and other online sources, but have come up dry trying to figure out why, whenever I click the Wizard's FINISH button, I get this error: "An error occurred while creating the new data source: Could not get type information for 'MyProject.MyProjectDataSet'." I can add the Access file to the Server Explorer, but can't drag a table to a form. It's behaving differently than the tutorials show, and I've spent three days now trying to determine why. ...Show All

  • Windows Forms combobox databinding to display more than one values

    I am developing a C#.net 2k5 winform app, I have a query to retrieve the data from database: SELECT     staff_no + ' - ' + title + ' - ' + name + ' - ' + profession AS staff_combo, staff_id FROM         staff ORDER BY staff_id I want to bind this staff_combo to my combobox1.display member, and  staff to the combobox1.valuemember. I tried this line below, it didnt work, plz help: this.staffTableAdapter.FillByStaffCombo( this.hPMDataSet.staff ); I have another question concerning binding computed values into displayed value of combobox. My data is defined such way: interface IData { IDataPrimaryKey PrimaryKey { get; } string Label { get; } string Code { get; } } ...Show All

  • Windows Forms DataGridView - selected row in new form

    I've been searching the web for sometime already, I tried all kinds of solutions, but none worked. My question is very simple: I have a DataGridView. When the user selects a single row from the grid and clicks a button (or double clicks the row), a different form opens and displays the fields from the selected row in labels or textBoxes. 1. How do I retrieve a row 2. How do I send the row to the second form 3. How do I make this happen with a double click Note: in the second form there is an option to update the row therefore I want to be able to return the data from the second form to the first or to the table. Thanks in advance. Thanks, you can make it happen faster with wizards. ...Show All

  • Windows Live Developer Forums Pushpins in V4

    Pushpin script working in version 3.x is no longer working in V4 when in 3d mode (works fine in 2d)...quite a few of the parameters in the failing pushin are null and the javascript error is complaining about a problem with 'length' A little debugging revealed an interesting bug--the title field can't be "null", but can be an empty string. In other words, this works: map.AddPushpin(new VEPushpin('LayPP:13',new VELatLong(30.557437,-84.221834),' ','13',null,null,null,null)); I'll let the team know. ...Show All

  • Visual Studio Tools for Office Add-in doesn't show up in Outlook after msi-install, but shows up in Outlook while developing, why?

    Hi, I have made an Outlook 2003 add-in in VS 2005 using VSTO 2005. When developing, both building debug and release builds, the add-in automagically shows up in Outlook when starting Outlook. The problem though is that when I (after removing the add-in in Outlook) run the add-in-installer (the, by VS2005, autogenerated msi-file) everything seems ok and the add-in is even listed under Add/Remove programs but when I start Outlook it doesn't show and when I go look for it under add-ins it's not there. This is on the same computer so all prerequisites like .Net 2.0, Office 2003 Pro PIAs and VSTOR are all there. Under the add-in:s setup-project the following detected dependencies are shown: Microsoft .NET Framework Interop.ADODB.dll Microsoft.O ...Show All

  • Smart Device Development CreateFile on PDA filesystem?

    How can I find the string to call to get a device handle on a PDA either from a PC or from inside the PDA itself In general use in .Net on a PC you can call CreateFile to get a device handle on a HardDisk by feeding it something like " \\.\PHYSICALDRIVE2 ". However, this does not seem to be the case on a PDA. I am trying to either A. gain access to the PDA as a USB device when the PDA is in the cradle, or B. get access to the device with a .Net compact application. Either way will do, but I am stumped as to how to find or lookup the string to access a create a handle. Thanks in advance Jeff If you're trying to access device file system from desktop, you should use RAPI for that. Desktop does no ...Show All

  • Visual C# sign application

    hi all. we are using the click-once tech' , and before we would publish our application we want to sign it ,so we wont get the "run dont run" msgbox, and the user will to press "run" all the time. so, when we try to sign it, we get a msg saing one of the controls(grouper by code-vendor), is not trusted and it wont sign out application. what should we do ...Show All

  • Visual Studio Team System Problem with DATE dimension of RTM Team Foundation Server Data warehouse

    We are trying to Migrate Team Foundation Server (RC) reports to Team Foundation Server (RTM). All the reports using Date dimension are failing as Date dimension is changed in RTM. Can anybody help me to understand the changes occurred in the date dimension (RTM) and how we need to use it. Here's my Report query which was successfully running in TFS (RC) WITH MEMBER [Measures].[daycurrentweek] as 'dateadd("d",15 - Weekday(now())  ,now())'MEMBER [TaskStartDate].[Year Week Date].[Current Week] as 'strtomember("[TaskStartDate].[Year Week Date].[Week].[Week of " + str(month([Measures].[daycurrentweek]))  + "/" + str(day([Measures].[daycurrentweek])) +"/"+ str(Year([Measures].[daycurrentweek]))  + "]").uniquename' MEMBER ...Show All

  • Visual Studio Deployment problems

    How do I get the my Windows app's setup.msi to install CR on the target computer I followed the steps described in Creating a new Windows Application Deployment Project with Windows Installer , and added my app's primary output to the Application Folder. But I really see no place that specifically describes how to add a CR component that will install the necessary CR files. When I build my app's Setup project and copy the output (setup.msi and other files) to the target computer and execute setup.msi, my app gets installed, but not CR. I can get setup.exe to do the job, if I go to Properties->Prerequisites... and turn on "Create setup program to install prerequisite components", and then select "Crystal Reports f ...Show All

  • SQL Server Object reference not set to an instance of an object

    Hi all I m trying to access a server report through report viewer control. I got the error "Object reference not set to an instance of an object". I have administrator rights on the reporting server. I have created this report using Business Intelligence Projects. I am using textboxes and rectangles throughout the report. When I compile and run the project through Business Intelligence Studio, it works very fine, but when I try to access it through direct url or by report viewer control, it gives the above mentioned error. I tried to deploy a blank report (having no controls like textbox, label, rectangle) to the report server, but got the same error, "object reference not set to an instance of an object&qu ...Show All

  • Visual Studio Creating a debugger visualizer for cusom data type

    Hello there, Can someone point me to an example of creating a visualizer for custom data type I followed the walk-through for creating visualizers, and it was very easy to create string visualizers. But I am having a tough time creating visualizers for my own data types. I searched and follow some tips to make my class ISerializable but that didn't seem to help. My goal is to be able to write a visualizer and able to edit the data via the VS 2005 debugger visualizer. I would appreciate any tips/comments. Thanks! **** My custom class **** namespace MyNS { [Serializable] public class IPMessage : ISerializable { public uint nSize; public int nFlag; //public byte[] baBuffer; public IPMessage() { n ...Show All

©2008 Software Development Network