|
hi there,
I installed VS.NET 2003 enterprise architect on win2k with service pack4 and when ever I try to build a new project it gives a message box contaning "script engine error on parsing script file" and I'm tottaly stuck. so can some1 give me a solution for it.
Thanks
Shahid
|
|
|
|
|
This appears to be a mystery to everyone out there. But from what other people are saying about when they get the error, it appears that the project template files are corrupted, maybe? Try moveing the C:\Program Files\Microsoft Visual Studio 8\Common7\IDE folder to the root directory (C:\IDE ), then doing a Repair/Reinstall on Visual Studio.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello,
I am a new gay on MFC
And follow a tutorial to create my first MFC program but when a compile i have to deal with the following problem:
Compiling...
HelloMFCDlg.cpp
c:\documents and settings\propriétaire\mes documents\visual studio 2005\projects\hellomfc\hellomfc\hellomfcdlg.cpp(158) : error C2664: 'CWnd::SetWindowTextW' : cannot convert parameter 1 from 'const char [42]' to 'LPCTSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Build log was saved at "file://c:\Documents and Settings\Propriétaire\Mes documents\Visual Studio 2005\Projects\HelloMFC\HelloMFC\Debug\BuildLog.htm"
HelloMFC - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Please your help!
see the file content!
// HelloMFCDlg.cpp : implementation file
//
#include "stdafx.h"
#include "HelloMFC.h"
#include "HelloMFCDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CAboutDlg dialog used for App About
class CAboutDlg : public CDialog
{
public:
CAboutDlg();
// Dialog Data
enum { IDD = IDD_ABOUTBOX };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Implementation
protected:
DECLARE_MESSAGE_MAP()
};
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
}
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
END_MESSAGE_MAP()
// CHelloMFCDlg dialog
CHelloMFCDlg::CHelloMFCDlg(CWnd* pParent /*=NULL*/)
: CDialog(CHelloMFCDlg::IDD, pParent)
{
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}
void CHelloMFCDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_MESSAGE, m_MessageST);
}
BEGIN_MESSAGE_MAP(CHelloMFCDlg, CDialog)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
//}}AFX_MSG_MAP
ON_BN_CLICKED(IDOK, &CHelloMFCDlg::OnBnClickedOk)
END_MESSAGE_MAP()
// CHelloMFCDlg message handlers
BOOL CHelloMFCDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Add "About..." menu item to system menu.
// IDM_ABOUTBOX must be in the system command range.
ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
ASSERT(IDM_ABOUTBOX < 0xF000);
CMenu* pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu != NULL)
{
CString strAboutMenu;
strAboutMenu.LoadString(IDS_ABOUTBOX);
if (!strAboutMenu.IsEmpty())
{
pSysMenu->AppendMenu(MF_SEPARATOR);
pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
}
}
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
}
void CHelloMFCDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
if ((nID & 0xFFF0) == IDM_ABOUTBOX)
{
CAboutDlg dlgAbout;
dlgAbout.DoModal();
}
else
{
CDialog::OnSysCommand(nID, lParam);
}
}
// If you add a minimize button to your dialog, you will need the code below
// to draw the icon. For MFC applications using the document/view model,
// this is automatically done for you by the framework.
void CHelloMFCDlg::OnPaint()
{
if (IsIconic())
{
CPaintDC dc(this); // device context for painting
SendMessage(WM_ICONERASEBKGND, reinterpret_cast<wparam>(dc.GetSafeHdc()), 0);
// Center icon in client rectangle
int cxIcon = GetSystemMetrics(SM_CXICON);
int cyIcon = GetSystemMetrics(SM_CYICON);
CRect rect;
GetClientRect(&rect);
int x = (rect.Width() - cxIcon + 1) / 2;
int y = (rect.Height() - cyIcon + 1) / 2;
// Draw the icon
dc.DrawIcon(x, y, m_hIcon);
}
else
{
CDialog::OnPaint();
}
}
// The system calls this function to obtain the cursor to display while the user drags
// the minimized window.
HCURSOR CHelloMFCDlg::OnQueryDragIcon()
{
return static_cast<hcursor>(m_hIcon);
}
void CHelloMFCDlg::OnBnClickedOk()
{
// TODO: Add your control notification handler code here
//OnOK();
m_MessageST.SetWindowText("Hello from the world of MFC by Heinstein.");
}
Heinstein
|
|
|
|
|
You posted your question in the .NET Framework forum. Something that MFC has nothing to do with. Repost your question in the Visual C++/MFC[^] forum and you'll get a better response.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
how can i make program that will login in hotmail acount and take all email address in this email
--------------------
in othere words i have web site that have username as email and password
i want to program to test login to this account and all email address in this account
to send advertisment to this email
how can i do that ??
Palestine
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
Tareq Abuzuhri wrote: i want to program to test login to this account and all email address in this account to send advertisment to this email
You mean you want to find all the email addresses in the hotmail account in order to spam them?
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
|
|
Hmmm, you asked for a verry difficult task. I have some bits but, unfortunately, are in plain C, not for .NET applications. Sorry.
-- modified at 10:10 Friday 14th April, 2006
... I was voted down... how rude!!! Why? Because I speak about plain C and not about .NET??
...or because I dind't really help him with my answer? If he is interested, I could port my C code to C#, so no reason to be voted down!!!
|
|
|
|
|
You were voted down because you basically offered to help a spammer spam.
|
|
|
|
|
Don Miguel wrote: I was voted down
and one more because you didn't understand your act before complaining...
-- TTD --
|
|
|
|
|
There is a website which supports several languages.
I want to get the language of Windows OS.
Then the hyperlink could turn to different pages.
How to do this?
Thanks!
|
|
|
|
|
You can do it by analyzing user ip address.
But this is not OS language. It's regional location.
Best regards, Alexey.
|
|
|
|
|
Hi,
I'm working with .NET Framework 2.0, I wrote a web service ( .asmx ). Now I want to configure to drop the .asmx extension.
For ex: intstead typing: http://mywebservice/ws.asmx, the client will type URL: http://mywebservice/ws and all things will be processed as normal (http://mywebservice/ws.asmx)
Can I do this?
Thanks for any suggestion!
Hung
|
|
|
|
|
I'm by no means an expert in WebServices, but I don't think you want to do that. This is because IIS uses the file extension to figure out how to process the request or what to pass the request on to. You MIGHT be able to include a file in that folder by that shortened name that just redirects to the .aspx page, but I have no idea really. I've never tried it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
I hope someone here knows a solution for the following problem: I'm developing a Windows Forms application that should run under restriced user accounts. But sometimes I need to write to parts of the registry usually not accessible for user accounts. If the user doesn't have the right to write to the registry, I prompt for a different username/password (and use impersonation for that id).
This definately works, if I query e.g. Environment.UserName afterwards, it returns the impersonated account's username. But I can't gain write access to the registry, I still receive a security exception.
I also tried to use RegistryPermission.Assert(), but no luck. Does anybody know what else has to be done? Thanks very much for any suggestion!
Kalme
|
|
|
|
|
And here is the solution: to test my application I used the fast user switching option of Windows XP, which seems to be the problem. I develop as administrator and for testing I switch to a restricted user account. If I completely log out of my developer account first, everything works fine (impersonating another account and accessing resources using its rights), but using fast user switching I receive a security exception no matter what.
If someone knows an explanation for this, I'd be happy to hear about it.
|
|
|
|
|
I found a progam in the .NET dept that I'd like to use:
http://www.codeproject.com/dotnet/showargs.asp[^]
It runs on my machine, but I've got .NET framework 1.1 installed.
How can I tell whether it runs on machines without the framework?
-- modified at 0:15 Friday 14th April, 2006
|
|
|
|
|
It doesn't.
.NET programs absolutely require the .NET framework.
Luis Alonso Ramos
Intelectix
Chihuahua, Mexico Not much here: My CP Blog!
|
|
|
|
|
I am trying to distinguish which interfaces are available on a Windows CE4.2 device (Need to determine if an ethernet connection is up as opposed to a wireless one).
Is there an alternative to the NetworkInterface.GetAllNetworkInterfaces( ) ?
And my apologies for not opening my eyes and seeing Mobile Development as a more relevant category.
-- modified at 10:52 Thursday 13th April, 2006
|
|
|
|
|
Hi, i was woundering does anyone know a free ribbon control (Windows Vista).
Thanks
Joe
|
|
|
|
|
Hi everybody,
I recently try to create remoting program in C#. I found out that I can use:
using System.Runtime.Remoting.Channels, but can not using System.Runtime.Remoting.Channels.Http. If I type it in, and compile it, I got:
the type or namespace name 'Http' does not exist in the class or namespace...
Does anybody know why I got this problem ?
I am using Microsoft Development Environment 2003 Ver. 7.1.3088 and Microsoft .NET Framework 1.1. Ver 1.1.4322 SP1. I am using Windows XP.
|
|
|
|
|
You need to add a Reference to the .NET assembly System.Runtime.Remoting.dll
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi Dave,
Thanks for your advice. It works. I thought there is something wrong with the .NET Framework or I have wrongly installed the Framework. I actually have tried installing service packs.
Anyway, Thanks again for your advice.
|
|
|
|