C++/CLI 启动代码
我需要为我的计算机编写一个在启动时运行的程序,并且运行得很好。 但是,我需要程序在启动时hide();
,这样我的朋友就看不到它打开了。我目前正在使用 Microsoft Visual C++
。我尝试将代码放置在项目的许多地方,其中包括:
Form1(void)
东西,位于InitializeComponent();
下方,- 在
void 内 InitializeComponent(void)
东西 #pragma endregion
里面的
但是没有用!!!
谁能告诉我把启动代码放在哪里?我基本上只是尝试放置
hide();
和HWND findwindow
或其他任何内容:/
...进入我的代码。
我将不胜感激任何可用的帮助。我也愿意为我的代码提供示例和替换。谢谢!
I need to write a program for my computer to run at startup, and its doing fine. However, I need the program to hide();
when it starts up, so my friends don't see it open up. I am currently using Microsoft Visual C++
. I've tried placing the code in many places of my project, which includes:
- the
Form1(void)
thingy, right belowInitializeComponent();
- inside the
void InitializeComponent(void)
thingy - inside the
#pragma endregion
thingy
BUT TO NO AVAIL!!!
Can anyone please tell me where to put the start-up code? I basically just tried putting
hide();
andHWND findwindow
or whatever it is :/
...into my code.
I would appreciate any help available. I am also willing to take examples and substitutions for my code. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,大家,我知道我必须做什么。我在 Google 上搜索了几天,最后...我只需要把该行放在属性窗口的
Load
上即可。就是这样!很简单,但我错过了...不过谢谢!
OK everyone, I know what I have to do. I Googled this for days and finally... I just have to put the line on the
Load
thingy on the properties window. That's it! So simple but I missed it...Thanks, though!