PM312 47 Junior Poster in Training

I have a candlestick chart with long list (data point) on X-Axis which becomes congested when loaded.

How to show datapoint with sufficient space . Is there any container with horizontal scroll bar to display chart just like data is displayed in DataGrid view without reducing column width.
Chartcandlestick.png

Mr.M 89 Future Programmers

Thanks, I've never used Git before.

I've commented out all the code but still. What I think might be producing this problem is the resources.

I added a new item then changed the default to a new icon. But I did run the project successfully that time.

This is the only thing I suspect might be a result of this problem. How can I clean the resource file to make sure there are no broken link or something?

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

I will also add that Git is built into almost all IDEs. It's the default version control for Visual Studio 2019 and forward. Are you still using VS 2010? There are some Git plugins for VS 2010 as well:

https://stackoverflow.com/questions/16989962/visual-studio-2010-2012-git-plugin

Salem 5,265 Posting Sage

Let me clarify, the project was running fine, only started experiencing this in few weeks ago.#

https://en.wikipedia.org/wiki/Git

Start using it.

Every time you make forward progress, you make a commit.

Every time you make a mess of it, you revert to the last known good state and try again.

Mr.M 89 Future Programmers

I've tried doing the extern to all these variables but still.

Let me clarify, the project was running fine, only started experiencing this in few weeks ago.

Regarding the question about the OpenXFS project (Library) the library is here and it's linked.

What I will do is try commenting out all the code and try debugging and see if it will debug and if it does I will uncomment one line of code at a time and see if I will figure out where's the problem if it's within the code

toneewa 115 Junior Poster

I like the challenge, but hate when errors like these occur.

Check for a syntax error on line 2 in starter.h
starter.h(2): warning C4067: unexpected tokens following preprocessor directive - expected a newline

Hard to say without seeing code. Some cases m_hservice may require you to use the .lib file Advapi32.lib it if it isn't automatically linked. #pragma comment(lib, "Advapi32.lib")
Add what you need to the Project Properties > Linker > Input > Additional Dependencies

Check to make sure you have all your .lib files and paths included in the project.
E.g., verify the .lib or header file for _wfsversion.

You can also do Build > Clean Solution, and Rebuild. If you change the order of functions, and reuse old object files, you can run into this.

You can also use #define _CRT_SECURE_NO_WARNINGS before your header declarations to suppress those warnings.

Determine where these definitions are, and what is required for them:

unsigned short MyProjectName::m_hservice
struct _wfsversion MyProjectName::m_verSion
long MyProjectName::m_hr
unsigned long MyProjectName::m_dwRVersion

Here is an example using them.

#include <windows.h>
#include <iostream>

#pragma comment(lib, "Advapi32.lib")

struct _wfsversion {
    int major;
    int minor;
    int build;
};

class MyProjectName {
public:
    SC_HANDLE m_hservice;  
    SC_HANDLE m_hSCManager;  
    struct _wfsversion m_verSion; 
    long m_hr;  
    unsigned long m_dwRVersion;  

    MyProjectName() : m_hservice(nullptr), m_hSCManager(nullptr), m_hr(0) {
        m_verSion = { 1, 6, 10 }; 
        m_dwRVersion = (m_verSion.major << 16) | (m_verSion.minor << 8) | m_verSion.build;
    }

    bool OpenServiceHandle(const std::wstring& serviceName) {
        m_hSCManager = OpenSCManager(nullptr, nullptr, SC_MANAGER_CONNECT);
        if (!m_hSCManager) {
            m_hr = GetLastError();
            std::cerr << "Failed to open …
rproffitt 2,701 https://5calls.org Moderator

I followed the build process and when I hit OpenXFS_V0.0.0.5 I went looking for that project to see if folk were having build problems.

Where is this OpenXFS project to be found?

I worry this is from some Linux project and may not be ready for Win and VS2010.

wwwalker 49 Newbie Poster

When compiling no relevant libraries have been included for linker to link so the executable won't run as it can't be compiled with missing libraries.

In C and C++ code, the library header includes are at the top of the page.

E.g.:
#include <iostream>

Go through each error where code requires a library to be linked and add those includes at the top then recompile and hopefully you have linked all relevant libraries for your code to compile and a valid .exe file will be generated and be able to be open and run.

For function strncpy, you need these to be included at top of program:

#include <stdio.h>
#include <string.h>

Unreferenced local variable means they have not been declared in scope. Declare those variables like:
data
WfsVersion

Error says use strncpy_s instead of strncpy. Try doing that.

Salem 5,265 Posting Sage

1>C:\Users\mypcname\Documents\Visual Studio 2010\Projects\myprojectname\Debug\myprojectname.exe : fatal error LNK1120: 16 unresolved externals

This is why you don't have an executable file.

Example:

1>myprojectname.obj : error LNK2020: unresolved token (0A0000DF) "unsigned short MyProjectName::m_hservice" (?m_hservice@MyProjectName@@$$Q3GA)
1>starter.obj : error LNK2020: unresolved token (0A0000DB) "unsigned short MyProjectName::m_hservice" (?m_hservice@MyProjectName@@$$Q3GA)
1>home1.obj : error LNK2020: unresolved token (0A0000DB) "unsigned short MyProjectName::m_hservice" (?m_hservice@MyProjectName@@$$Q3GA)

You need to define these symbols somewhere in your code for it to compile an executable.

Mr.M 89 Future Programmers

Here's the log, I had posted it yesterday I don't know what happened to it now or it was removed?

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

Can you please save the log as a text file and attach it as an attached file here? Much thanks! :)

rproffitt 2,701 https://5calls.org Moderator

Since no details such as logs were shared, others can't find Waldo.

Mr.M 89 Future Programmers

I tried saving logs and going through it but I don't see where it indicate where's the problem.

Temporal -8 Newbie Poster

Yes! When I studied Software Development at UNIAT, I learned there are good GitHub alternatives like GitLab, Bitbucket, SourceForge, and Azure DevOps. Each has its strengths depending on your needs and workflow. Have you tried any?

Dani commented: AI generated? -8
Temporal -8 Newbie Poster

Great topic! When I studied Game Design and Art at UNIAT, we also touched on Flutter and state management, which is key for solid apps.

Flutter manages state through its widget tree, with setState() rebuilding parts as needed. For bigger apps, tools like Provider, Riverpod, and BLoC help manage complexity.

Provider is simple and good for medium projects, Riverpod improves scalability and testing, and BLoC suits apps with complex logic but has a steeper learning curve.

It really depends on the project and team, but understanding how Flutter rebuilds widgets helps pick the right approach. Have you tried any yet?

Dani commented: AI generated? +0
toneewa 115 Junior Poster

I've seen this happen from Windows Defender nuking Visual Studio's compile process.
Make sure the PC is set to Developer Mode.
Whitelist the directories involved in Windows Defender.
This could happen after a Windows Update.

Check the "defender" log and see if there is any file(s) to restore.
Restarting the PC will resolve any hung/background processes that may or may not be running from VS.

I've explored self app signing and certificates, as well as giving the app raised privilages by default. There's no way I'll ever pay for a DigiCert or some other Certificate Authority (CA) for Microsoft.

I hate false positives.

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

First of all, let me be blunt. I believe that Enzo only resurrected a 12 year old thread with the intent of spamming. You and I know that because, as moderators, we see in his profile his spamming attempts and his infractions. However, no one else coming across this thread sees that or knows that, so the other 2000 people reading this thread may look at his post through a completely different lens than you or I.

My downvote was for the benefit of all of those people. I want us to be known as a friendly community where newbies can feel welcome to post anything and there are no dumb questions and no one should ever be made to feel dumb for any code they post, no matter how wrong it might be. I feel like your comment accusing their teacher of teaching it poorly, and then preaching "malpractice makes malperfect", etc. could be taken the wrong way. For example, what do you expect a student to do with being told, "Good programming habits should be taught from the start"? Are they meant to respond in agreement? It can potentially come across as being chastised for doing something that their teacher taught them. My most important thing here is that your response is never for the one person you're responding to, but always for the thousands of people who come after and read what you have to say. Newbies who come across moderators saying things like this can make …

rproffitt 2,701 https://5calls.org Moderator

Here's a page about how to create and view your VS log files to point you to where or why the compile failed.

https://learn.microsoft.com/en-us/visualstudio/ide/how-to-view-save-and-configure-build-log-files?view=vs-2022

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Why put them down?

Please explain to me how anything I said was a put down. If someone told me their methof of counting cows was "count the number of legs and divide by four", I would point out that it would be simpler just to count the number of cows. If I said "That's stupid, just count the cows", then that would be a put down. What I did was to advocate for simple over complex.

I think you are being too quick to downvote.

rproffitt commented: And then I googled "3 legged cow". So would they call this a three quarter cow? +0
rproffitt 2,701 https://5calls.org Moderator

Since the file is not generated, try a full compile. Be sure you change to Debug for this build.
You usually can't debug what you didn't compile.

Example: There were compile or build errors which stopped the creation of the .exe file. But no mention of compile errors so I wouldn't write about that here.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I don't know why you would use reduce and lambda when you could just do

sum(numbers)

And the directive

You should make use of two higher-order functions (i.e., map and reduce, or something else) to simplify the design.

is self-contradictory as using map and reduce instead of sum does not simplify the design. It complicates it. That goes against the core principles of Python. If that was a school assignment then the teacher is teaching it poorly. Malpractice makes malperfect. Good programming habits should be taught from the start.

Dani commented: I think you’re being pretty tough on someone trying to learn. Why put them down? -8
rproffitt commented: That's sums up. +17
Enzo_3 34 Newbie Poster Banned

I was working on a similar assignment where I had to compute the average of numbers from a text file using higher-order functions like map() and reduce(). I was really stuck on how to incorporate them meaningfully, but I finally figured it out.

Here's how I approached it using Python:

from functools import reduce

with open('numbers.txt', 'r') as file:
    content = file.read()

number_strings = content.split()
numbers = list(map(int, number_strings))
total = reduce(lambda x, y: x + y, numbers)
average = total / len(numbers)

print("Average:", average)

This worked perfectly for the numbers in the file and helped me understand how to use functional programming in a real example.

Dani commented: Feel free to link to other websites in your forum signature (in control panel) +34
Mr.M 89 Future Programmers

@rproffitt I tried that with no luck

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

When you browse the file system, does that file exist and is it accessible by the logged-in user? (Sorry, no VS experience.)

Mr.M commented: The file is not generated +8
rproffitt 2,701 https://5calls.org Moderator

Given only this I won't be able to do more than comment how I use the Visual Studio system to debug my app.

  1. I open the project.
  2. I set the build to "Debug".
  3. I set breakpoints on lines of code I suspect to be problematic.
  4. I run the app while in Visual Studio.

That's usually enough to track down what I did wrong.

Mr.M 89 Future Programmers

Hi DW, I'm getting this error when I try to debug, it says it can't open "c:\users\myusername\Documents\Visual Studio 2010\Projects\myprojectname\debug\myprojectname.exe"

How can I solve this?

dev_281 0 Newbie Poster

The Developer makes SharePoint "do more" and look better.

The Administrator keeps it running smoothly, securely, and reliably

sophiabrooks 0 Newbie Poster

Flutter internally handles state management through a combination of mechanisms: Stateful Widgets, declarative UI updates, and various libraries for managing app-wide state.

ThinkWriteGrow 0 Newbie Poster

What are some best practices for optimizing memory management when working with large datasets?

I am tagging this topic both with php (because that is my language of choice, and the one I work with big data with) as well as c++ (because I know DaniWeb has a large low level c++ community that is well suited to being able to delve into this topic into depth, and because years ago when I focused on c++ myself, I was very focused on efficiency).

To optimize memory management with large datasets, start by using efficient data types to minimize memory usage. Load data in smaller chunks instead of all at once, and avoid unnecessary data copies by working with references or views. Tools like memory-mapped files or libraries such as Dask can help handle big data efficiently. Also, remember to clean up unused objects promptly to free up memory. These steps will keep your processing smoother and faster.

kearawill -12 Newbie Poster

No, It is not AI generated.

asnashehr234 0 Newbie Poster

What is the difference between a sharepoint developer and a sharepoint administrator ?

asnashehr234 0 Newbie Poster

How does the CMS handle the categorization and prioritization of incoming correspondence ?

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

When you want to do a loop a given number of times (e.g. 100) but the loop counter is not used you can do

for _ in range(100):
    # rest of code here
woooee 814 Nearly a Posting Maven
while timesflipped < 100:
    timesflipped += 1

Use a for loop instead.

if coin_flips == 0:

And no need to add the == 0. Just if coin_flips (i.e. not zero) is enough

cirol 0 Newbie Poster

Pranks can be fun, but fake viruses might cause real worry and problems. It’s best to use your skills in ways that don’t upset or confuse others.

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

I’d never recommend storing sensitive information like passwords, private keys, or database credentials—even with .gitignore. Instead

Why not, though? Doesn't .gitignore just completely ignore the files to where they never touch Github's servers?

To me, that sounds much more secure than Github secrets, where sensitive information is stored on the Github servers.

kearawill -12 Newbie Poster

GitHub is generally very secure for hosting code, especially with features like 2FA, security alerts, and private repositories. However, like any platform, it's only as secure as how you use it. I’d never recommend storing sensitive information like passwords, private keys, or database credentials—even with .gitignore. Instead, use environment variables or secret managers like GitHub Actions Secrets or AWS Secrets Manager.

When it comes to proprietary code or trade secrets (like specialized algorithms or business logic—for example, I once worked on a stamp duty London calculator for a client), it's crucial to keep that in a private repo with restricted access. Also, ensure that your team follows best practices for committing code, reviews, and repository permissions.

In short: GitHub can be safe, but it depends on your practices. Always assume someone could accidentally leak access and plan your security accordingly.

kearawill -12 Newbie Poster

How Flutter Handles State Internally

Flutter uses a reactive UI model. When the setState() method is called within a StatefulWidget, it marks that widget as "dirty" and schedules it to be rebuilt in the next frame. This allows Flutter to efficiently update only the parts of the widget tree affected by the change, thanks to its immutable widget structure.

While setState() works well for managing local state in smaller applications, it’s not ideal for handling shared or complex state in larger apps. That’s where dedicated state management solutions come into play.

Popular State Management Approaches in Flutter

Provider (maintained by the Flutter team)
Provider is simple, integrates well with Flutter’s widget tree, and is also great for dependency injection. However, in larger apps, things can become messy without careful modularization.

Riverpod (a more robust alternative to Provider)
Riverpod improves testability, removes the need for BuildContext, and includes features like auto-disposal. It has a slight learning curve, but offers a much more scalable and maintainable experience.

Bloc / Cubit
These are ideal for large-scale applications that need strict separation of business logic. Bloc is strongly typed and highly testable. The main drawback is that it can feel verbose and boilerplate-heavy, especially for small apps.

GetX
GetX is known for its simplicity and speed. It combines state management, navigation, and dependency injection into one lightweight solution. However, it can lead to poor architectural decisions if not used carefully.

MobX
MobX follows a reactive pattern using observables and reactions, resulting in clean and …

Dani commented: Is this AI generated? -8
rproffitt commented: GPT? -4
Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

I hope learn more about you.

This is me: https://www.daniweb.com/welcome/about

Stiven_1 0 Newbie Poster

I hope learn more about you.

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

What does the crypto class look like?

Stiven_1 0 Newbie Poster

Sorry, I used a code I had practiced before to sign up quickly. This code is
This JavaScript code simulates a basic blockchain — like a mini version of Bitcoin — without a network or mining. It helps you understand how blocks are linked and verified.

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

You might want to check out Upwork or Toptal to get freelance development work.

May I ask what the code you provided here does? It seems to just be a constructor function with some getters and setters, but is missing the rest of it. Was it written by ChatGPT?

Stiven_1 0 Newbie Poster

I am a full-stack full-time developer.
I have 5 years of development experience and My basic skills are Blockchain, TypeScript, ReactJS, Shopify.
I am a full-time dev, so I can answer your inquiries at any time.
I can work on weekends if needed and communicate fluently in English.

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

Why don’t you tell us since you’re a Sharepoint compliance manager according to your profile?

Salem commented: LOL +16
rproffitt commented: Yup. +17
asnashehr234 0 Newbie Poster

What is contract management in sharepoint ?

Ulfson 0 Newbie Poster

I used to get Nexus devices (predecessors of the Pixels) for a plain vanilla Android environment, but these days I no longer value that so much. As I don't fancy the Chinese manufacturers, that leaves Samsung for decent-priced midrange phones. IMO the changes they make to the Android UI don't make a difference for development, and of you really need vanilla Android, the emulator works fine for that.

jonathannweyer -3 Newbie Poster

For testing a Java app, a good choice would be a mid-range device like the Google Pixel series or a Samsung Galaxy A series. These models generally have a clean Android experience and receive regular updates, which can help ensure compatibility with a wide range of devices.

Additionally, using an emulator can be beneficial for testing, as it allows you to simulate different screen sizes and Android versions. If you focus on those, you should have a solid foundation for compatibility across many other devices. For more information on custom Android app development, you can check out Idea Maker Agency services.

whackksports 0 Newbie Poster

Utilizing efficient tools and techniques, such as data filtering, storage solutions, and analytics platforms, is essential for optimizing work with big data. Automating processes, leveraging cloud computing, and ensuring scalability are also required.

asadalig -8 Newbie Poster Banned

Flutter manages state using a widget tree and immutable widgets. When an app’s state needs to be updated, Flutter takes care of rebuilding only the UI components that require change when setState() is called on stateful widgets. This allows the framework to re-render the important widgets and not all the widgets on the screen.

For more sophisticated requirements regarding state, Flutter supports advanced features like InheritedWidget, Provider, Riverpod, and Bloc, though it is largely based on effective diffing and rebuilding widgets to provide state changes.